package sjisLength; public class SJISLengthTest { public static void main(String[] args) { SJISLength st = new SJISLength(); String str1 = "学校アイウエオ"; String str2 = "ガリレオガリレイ"; String str3 = "学校アイウエオ"; String str4 = "\\\\480"; String str5 = "𠮷野家"; String str6 = "髙橋家"; String str7 = "高橋家"; System.out.println(String.format("string:[%s] Len1=[%d] Len2=[%d]", str1, st.getStrLen1(str1), st.getStrLen2(str1))); System.out.println(String.format("string:[%s] Len1=[%d] Len2=[%d]", str2, st.getStrLen1(str2), st.getStrLen2(str2))); System.out.println(String.format("string:[%s] Len1=[%d] Len2=[%d]", str3, st.getStrLen1(str3), st.getStrLen2(str3))); System.out.println(String.format("string:[%s] Len1=[%d] Len2=[%d]", str4, st.getStrLen1(str4), st.getStrLen2(str4))); System.out.println(String.format("string:[%s] Len1=[%d] Len2=[%d]", str5, st.getStrLen1(str5), st.getStrLen2(str5))); System.out.println(String.format("string:[%s] Len1=[%d] Len2=[%d]", str6, st.getStrLen1(str6), st.getStrLen2(str6))); System.out.println(String.format("string:[%s] Len1=[%d] Len2=[%d]", str7, st.getStrLen1(str7), st.getStrLen2(str7))); } }