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
advertising
java/lang/string/touppercase.txt · Last modified: 2013/04/10 10:11 by 94.223.12.247

Impressum Datenschutz