摘要:
regex = "([a-zA-z]+:\\d{1,3}:\\d{4}-\\d{2}-\\d[2]:\\d{1,3}(\\.\\d{1,2})?\\|?)+"验证邮箱格式的正则表达式String ... 阅读全文
摘要:
public class Isnum { public static void main(String[] args) throws Exception { String nu... 阅读全文
摘要:
package demo;public class Isnum { public static void main(String[] args) throws Exception { ... 阅读全文
摘要:
如果对象数组要进行排序,则需要使用到比较器,Java提供有两种比较器,comparable、comparator。 java.lang.comparable是在一个类定义的时候实现的接口,里面哟一个compareTo()方法。 java.util.comparator是一个挽救的比较接口,需要单独为 阅读全文