User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







java:lang:string:touppercase

toUpperCase

toUpperCase()
toUpperCase(locale)

description of toUpperCase

returns the String, converted to uppercase.

example of toUpperCase in java

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

output of charAt

 TEST 1234 in uppercase

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
java/lang/string/touppercase.txt · Last modified: 2024/02/16 01:12 (external edit)

Impressum Datenschutz