中文字符串判断
程序员文章站
2022-03-24 19:58:34
...
public class EnZhDistinguish {
public static void main(String[] args) {
String s = "aa中囯bb";
System.out.println(s.length() == s.getBytes().length);
}
}
上一篇: 了解Java程序之面向对象
下一篇: python-检查是否为中文字符串