1. 程式人生 > >中文字串判斷

中文字串判斷


public class EnZhDistinguish {

    public static void main(String[] args) {
        String s = "aa中囯bb";
        System.out.println(s.length() == s.getBytes().length);
    }

}