摘要: import java.util.regex.Pattern ;public class RegexDemo02{public static void main(String args[]){String str = "1234567890" ;// 此字符串由数字组成if(Pattern.compile("[0-9]+").matcher(str).matches()){// 使用正则System.out.println("是由数字组成!") ;}else{System.out.println("不是由数字组成!" 阅读全文
posted @ 2013-10-17 00:00 502ck 阅读(147) 评论(0) 推荐(0) 编辑