import java.nio.charset.StandardCharsets;

public class Stringlength {
 
    public static void main(String[] args) {
        // 変数の宣言
        String jusho1 = "兵庫県神戸市1234";
        int nn =10;
     
        // 文字数を出力
        System.out.println("住所の文字数は" + jusho1.length() + "です。");
        System.out.println("住所のバイト数は" + jusho1.getBytes(StandardCharsets.UTF_8).length + "です。");
    }
 
}