Java toUpperCase () -Methode
toUpperCase () -Methode in einen String Kleinbuchstaben in Großbuchstaben umgewandelt.
Grammatik
public String toUpperCase() 或 public String toUpperCase(Locale locale)
Parameter
keine
Rückgabewert
Großbuchstaben umgewandelt in einen String nach.
Beispiele
public class Test { public static void main(String args[]) { String Str = new String("www.w3big.com"); System.out.print("返回值 :" ); System.out.println( Str.toUpperCase() ); } }
Die oben genannten Programmausführung Ergebnisse:
返回值 :WWW.w3big.com