convert string to mayus java

Java
String str = "Hello World!";
System.out.println(str.toUpperCase()); //prints "HELLO WORLD!"

Source

Also in Java: