String toUppercase ():This method converts all of the characters in the invoking string to uppercase. For example,
str1.toUppercase(); //returns HELLO JAVA
public class StringtoUpperCase
{
public static void main(String[] args)
{
String strl = "hello java";
System.out.println("strl.toUpperCase() = " + strl. toUpperCase());
}
}