・lengthメソッド:String型の変数名.length()で文字列の長さ、文字数を取得できる。 ・substringメソッド:String型の変数名.substring(0, 2)で文字列の0~2番目の文字を抽出できる。