1用JAVA自带的函数publicstaticbooleanisNumeric(Stringstr){for(inti=str.length();--i>=0;){if(!Character.isDigit(str.charAt(i))){returnfalse;}}returntrue;}2用正则... Read More
posted @ 2014-04-21 09:15 齐心 Views(238) Comments(0) Diggs(0) Edit