Java toUpperCase () metode
toUpperCase () metode untuk string karakter huruf kecil dikonversi ke huruf besar.
tatabahasa
public String toUpperCase() 或 public String toUpperCase(Locale locale)
parameter
tidak
Kembali Nilai
karakter huruf besar dikonversi ke string setelah.
contoh
public class Test { public static void main(String args[]) { String Str = new String("www.w3big.com"); System.out.print("返回值 :" ); System.out.println( Str.toUpperCase() ); } }
Atas hasil pelaksanaan program:
返回值 :WWW.w3big.com