检测中,英,汉的方法
摘要:
public static boolean isEnglish(String str) {return str.matches("^[a-zA-Z.,!?]*");}public static boolean isChinese(String str) {// 检测是否包含中文String regE... 阅读全文
posted @ 2015-09-08 23:21 寂寞跫音 阅读(142) 评论(0) 推荐(0)
posted @ 2015-09-08 23:21 寂寞跫音 阅读(142) 评论(0) 推荐(0)
posted @ 2015-09-08 23:18 寂寞跫音 阅读(596) 评论(0) 推荐(0)