摘要:
//定义一个正则表达式的规则 String reg = "abc[.]*"; //待检验的字符串 String str = "abcdfghjkl"; //获取一个Pattern对象 Pattern p = Pattern.compile(reg); //调用matcher方法 Matcher m 阅读全文
摘要:
Date date = new Date(); long time = date.getTime(); System.out.println(time); 阅读全文
摘要:
String str = "sdfghjk"; char[] char1 = str.toCharArray(); for (char c : char1) { System.out.println(c); } 阅读全文