The following example uses the String toUpperCase() method to convert the string from lowercase to uppercase:
//StringToUpperCaseEmp.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); }}
Original String: string abc touppercase String changed to upper case: STRING ABC TOUPPERCASE
The above is the Java example - string lowercase Convert the content to uppercase. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!