摘要: 结果 (1,2) (1,3) (1,4) (1,5) (1,6) (1,7) (2,3) (2,4) (2,5) (2,6) (2,7) (3,4) (3,5) (3,6) (3,7) (4,5) (4,6) (4,7) (5,6) (5,7) (6,7) 阅读全文
posted @ 2018-05-22 16:06 dengrq 阅读(95) 评论(0) 推荐(0) 编辑
摘要: /** * 获取本机访问地址 * @return */ public static String getIp(){ String ip = ""; try { InetAddress inet = InetAddress.getLocalHost(); ip = inet... 阅读全文
posted @ 2018-05-22 15:38 dengrq 阅读(138) 评论(0) 推荐(0) 编辑
摘要: /** * string与stringbuffer比较 * * @since */ public void StringCompareStringBuffer(){ Long curr = System.currentTimeMillis(); System.out.println(curr); ... 阅读全文
posted @ 2018-05-20 14:03 dengrq 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 效果图 阅读全文
posted @ 2018-05-20 13:53 dengrq 阅读(459) 评论(0) 推荐(0) 编辑
摘要: package com.van.common.utils; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.net.URLEncoder; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServ... 阅读全文
posted @ 2017-04-26 22:14 dengrq 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 网盘帮助文档 链接:https://pan.baidu.com/s/15xXkyfySG7Fjr7Qj-Hhs7w 密码:llxb 阅读全文
posted @ 2017-04-26 22:12 dengrq 阅读(10463) 评论(2) 推荐(0) 编辑
摘要: /** * 降序升序 * * @param str * @since 0.0.1 */ public void sort(String str){ String[] nums = str.split(" "); List odd = new ArrayList(); List ... 阅读全文
posted @ 2017-04-26 22:09 dengrq 阅读(412) 评论(0) 推荐(0) 编辑
摘要: /** * 回文数字判断 * * @param num * @since 0.0.1 */ public void huiwen(String num){ Integer temp = (num.length())/2 ; System.out.println(temp); b... 阅读全文
posted @ 2017-04-26 22:06 dengrq 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 名称 表达式 备注 电话号码 /^(\d{3,4}-?)?\d{7,9}$/g 手机号码 /^(((13[0-9]{1})|(15[0-35-9]{1})|(17[0-9]{1})|(18[0-9]{1}))+\d{8})$/ 身份证 15位: /^(\d{6})()?(\d{2})(\d{2})( 阅读全文
posted @ 2016-11-05 12:27 dengrq 阅读(155) 评论(0) 推荐(0) 编辑