toUpperCase() replaces all lowercase letters to uppercase.
public class Test{
public static void main(String[] arg){
String firstString = "HeLLo";
String upperString=firstString.toUpperCase();
System.out.println("The new upper case String is : "+newString);
}
}
Converts all the letters to uppercase.