2016年5月17日

摘要: package test; public class test1_format { public static void main(String[] args) { System.out.println("1&".split("&").length);//长度为1 System.out.println("1&1".split("&").length... 阅读全文
posted @ 2016-05-17 15:24 liquan123456 阅读(1241) 评论(0) 推荐(0) 编辑
 

2016年5月10日

摘要: package test; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class MD5Util { //第一种实现 public final static String MD5(String s) { char hexDigi... 阅读全文
posted @ 2016-05-10 18:47 liquan123456 阅读(4548) 评论(0) 推荐(0) 编辑
 

2016年5月4日

摘要: 从大到小:从第一个元素开始,依次和后面的每一个元素相比较,每次找出剩余元素中最大的; 从大到小:从第一个元素开始,依次和后面的每一个元素相比较,每次找出剩余元素中最小的; 阅读全文
posted @ 2016-05-04 14:55 liquan123456 阅读(221) 评论(0) 推荐(0) 编辑
 
摘要: 之前学习的时候只是知道有基本数据类型和引用数据类型两大类,但是不知道区别,或者说是各自有什么特性, 今天意外收获了点东西 运行输出结果如下: 结论:因为数组为引用数据类型,所以形参 int [] a 则完全等于实参 int array [],int [] a 是对实参的引用它即等于实参。 所以输出的 阅读全文
posted @ 2016-05-04 14:44 liquan123456 阅读(162) 评论(0) 推荐(0) 编辑
 

2016年4月20日

摘要: 阅读全文
posted @ 2016-04-20 16:14 liquan123456 阅读(162) 评论(0) 推荐(0) 编辑
 
摘要: 1:spring mvc 是围绕着DispatcherServlet展开的 ,其底层还是servlet 跳转方式: ①request.getRequestDispatcher("../index.jsp").forward(request, resp); ②resp.sendRedirect(".. 阅读全文
posted @ 2016-04-20 14:51 liquan123456 阅读(2253) 评论(0) 推荐(1) 编辑
 

2016年3月25日

摘要: select count(*) cnt from vhuiy where CAST(id as text) like'%12%'--id为int类型 更详细的链接:http://www.studyofnet.com/news/279.html 阅读全文
posted @ 2016-03-25 15:27 liquan123456 阅读(848) 评论(0) 推荐(0) 编辑
 

2016年3月18日

摘要: document.body.scrollTop = 0; 阅读全文
posted @ 2016-03-18 17:09 liquan123456 阅读(144) 评论(0) 推荐(0) 编辑