public class EnZhDistinguish {
public static void main(String[] args) {
String s = "aa中囯bb";
System.out.println(s.length() == s.getBytes().length);
}
}
中文字符串判断

最新推荐文章于 2023-11-01 19:15:14 发布
public class EnZhDistinguish {
public static void main(String[] args) {
String s = "aa中囯bb";
System.out.println(s.length() == s.getBytes().length);
}
}