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