Mega Code Archive
To change the case of string to upper case
public class Main {
public static void main(String[] args) {
String str = "string";
String strUpper = str.toUpperCase();
System.out.println(str);
System.out.println(strUpper);
}
}
/*
string
STRING
*/