Java判断字符串中是否含有中文

/*
     *  判断字符串中是否含有中文,true,包含中文
     */
    public boolean isCNChar(String s){
        boolean booleanValue = false;
        for(int i=0; i<s.length(); i++){
            char c = s.charAt(i);
            if(c > 128){
                booleanValue = true;
                break;
            }
        }
        return booleanValue;
    }
原文地址:https://www.cnblogs.com/Big-Boss/p/10062602.html