programming-examples/java/_Basics/How to convert a string totally into upper case.java
2019-11-15 12:59:38 +01:00

8 lines
317 B
Java

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);
}
}