programming-examples/java/Basics/How to convert a string totally into upper case.java

8 lines
317 B
Java
Raw Normal View History

2019-11-18 14:44:36 +01:00
public class StringToUpperCaseEmp {
public static void main(String[] args) {
String str = "string abc touppercase ";
String strUpper = str.toUpperCase();
System.out.println("Original String: " + str);
System.out.println("String changed to upper case: "+ strUpper);
}
}