Programming Reference/Librarys
Question & Answer
Q&A is closed
toUpperCase() toUpperCase(locale)
returns the String, converted to uppercase.
package lang; public class Lang { public static void main(String[] args) { String str = "test 1234"; str = str.toUpperCase(); // str = str.toUpperCase(Locale.SIMPLIFIED_CHINESE); // for Simplified Chinese System.out.println(str+" in uppercase"); } }
TEST 1234 in uppercase