摘要: 判断字符串中是否仅包含字母数字和汉字*各种字符的unicode编码的范围:*汉字:[0x4e00,0x9fa5](或十进制[19968,40869])* 数字:[0x30,0x39](或十进制[48, 57])*小写字母:[0x61,0x7a](或十进制[97, 122])*大写字母:[0x41,0... 阅读全文
posted @ 2015-06-07 21:08 leansmall 阅读(996) 评论(0) 推荐(0) 编辑
摘要: http://hi.baidu.com/dillisbest/blog/item/880021fbe9ae148c58ee90f8.html1.判断字符串是否仅为数字:1>用JAVA自带的函数publicstaticbooleanisNumeric(Stringstr){for(inti=str.l... 阅读全文
posted @ 2015-06-07 21:07 leansmall 阅读(1661) 评论(0) 推荐(0) 编辑