hey, i need to write a method that can uses the scanner to get a string (using the next() method), the string must then be changed to capital letter. i've gotta print the converted one so it says " hello ". i've been told to carrion the string until it closes to once the last message has been printed like "last". the program should close if i enter strings like CLOSE, CloSe, close ectect
unsure how to do it
import java.util.Scanner;
public class London {
static void readWords()
String b = "Hello";
Scanner scanner = new Scanner(b);
b.toUpperCase();
}