风故故,也依依

Stand still in the wind.

导航

2007年10月14日 #

java中判断字符串是否为数字的三种方法

摘要: 1用JAVA自带的函数publicstaticbooleanisNumeric(String str){for(inti=str.length();--i>=0;){if(!Character.isDigit(str.charAt(i))){returnfalse; } }returntrue;}2用正则表达式public static boolean isN... 阅读全文

posted @ 2007-10-14 01:31 jadmin 阅读(237) 评论(0) 推荐(0)