摘要: public class BubbleSort_Two { public static void bubbleSort_Two(int[] list){ //j在最外层定义 boolean needNextPass = true; for(int i=0,j;ilist[j+1]){ int tem 阅读全文
posted @ 2018-05-07 22:06 Loading~ 阅读(403) 评论(0) 推荐(0) 编辑
摘要: public class BinarySort { public static int binarySort(int[] list, int low, int high, int key){ if(low high) return 1; else{ int mid = (low+high)/2; i 阅读全文
posted @ 2018-05-07 22:05 Loading~ 阅读(132) 评论(0) 推荐(0) 编辑
摘要: public class SelectSort { public static void selectSort(int [] list){ for(int i=0;ilist[j]) temp = j; } //一次迭代完成 判断最小元素放到前面 if(temp!=i){ int result = 阅读全文
posted @ 2018-05-07 22:03 Loading~ 阅读(112) 评论(0) 推荐(0) 编辑
摘要: public class QuickSort { public static void quickSort(int [] list){ quickSort(list, 0, list.length 1); } public static void quickSort(int[] list, int 阅读全文
posted @ 2018-05-07 22:03 Loading~ 阅读(138) 评论(0) 推荐(0) 编辑
摘要: public class ShellSort { public static void shellSort(int[] list){ int d = list.length; int temp = 0; while(true){ d = (int)Math.ceil(d/2);//保证向上取整 的d 阅读全文
posted @ 2018-05-07 22:00 Loading~ 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 交换机支持的命令:(注:交换机支持命令对应的为思科2系列交换机。) 交换机基本状态: switch: ;交换机的ROM态 rommon ;路由器的R状态 switch ;用户模式 switch ;特权模式 switch(config) ;全局配置模式 switch(vlan) 交换机VLAN配置模式 阅读全文
posted @ 2018-05-07 21:30 Loading~ 阅读(1360) 评论(0) 推荐(0) 编辑
摘要: 1. 不使用缓存 使用同一个session执行查询 对同个对象的第二次查询只是返回第一册查询结果 而不是重新使用SQL语句对数据库进行查询 2. 一级缓存(Session缓存) 介绍 1. 通过Session从数据库查询实体会把实体在内存中存储起来,下一次查询同一实体不再从数据库获取,而是从内存中获 阅读全文
posted @ 2018-05-06 18:32 Loading~ 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1. JSP页面中,二处的字符编码有何区别 1、<%@ page contentType="text/html;charset=UTF-8" %> 是服务器端java程序运行时的输出编码,即服务器端以什么样的编码向客户端输出HTML时采用的编码. 2、meta http-equiv="Content 阅读全文
posted @ 2018-05-06 18:28 Loading~ 阅读(316) 评论(0) 推荐(0) 编辑
摘要: /WEB-INF/web.xml Web应用程序配置文件,描述了 servlet 和其他的应用组件配置及命名规则。 /WEB-INF/classes/ 包含了站点所有用的 class 文件,包括 servlet class 和非servlet class,他们不能包含在 .jar文件中。 /WEB- 阅读全文
posted @ 2018-05-06 18:22 Loading~ 阅读(4232) 评论(0) 推荐(0) 编辑
摘要: 原理: jsp中的Java代码 —— 服务器端代码 js代码 —— 客户端代码 java是在服务器端运行的代码,jsp在服务器的servlet里运行,而JavaScript和html都是在浏览器端运行的代码。 所以服务器端先执行,执行后将信息传给客户端。 因此加载jsp页面的执行顺序是java → 阅读全文
posted @ 2018-05-06 18:18 Loading~ 阅读(1569) 评论(0) 推荐(0) 编辑