public static boolean isAngle(String str){ if(str.getBytes().length==str.length()){ //全是半角 return true; } return false; }
public static boolean isAngle(String str){ if(str.getBytes().length==str.length()){ //全是半角 return true; } return false; }
转载于:https://www.cnblogs.com/tnsay/p/5754040.html