2021-03-28 【Java】文字列を大文字に変換(toUpperCase) Java 文字列を大文字に変換する方法です。 文字列を大文字に変換 //文字列データ(小文字) String str = "abcdefg"; //大文字変換 str.toUpperCase(); 実行結果