toUpperCase

2019年5月31日 (金) 09:57時点におけるY (トーク | 投稿記録)による版 (ページの作成:「(String).toUpperCase [https://docs.oracle.com/javase/jp/8/docs/api/java/lang/String.html#toUpperCase--]<br> public String toUpperCase() 文字列を全て大文字…」)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)

(String).toUpperCase [1]
public String toUpperCase()

文字列を全て大文字に変換します。

String str = input.toUpperCase();
System.out.println("Your type: " + str);