2021-04-02 【Java】文字列から1文字取得(charAt) Java 文字列から1文字取得する方法です。 文字列から1文字取得 //文字列データ String str = "ABC"; //文字列から1文字取得 str.charAt(1); 実行結果