10 2016 档案
摘要:折半插入排序 1 package sort; 2 /** 3 * 折半插入排序 4 * @author shkstart 5 * 2013-11-27 6 */ 7 8 public class BinaryInsertSort { 9 public static void binaryInsert
阅读全文
摘要:1.对象的存储:①数组(基本数据类型 & 引用数据类型) ②集合(引用数据类型) >数组存储数据的弊端:长度一旦初始化以后,就不可变;真正给数组元素赋值的个数没有现成的方法可用。2.集合框架Collection接口 :方法:①add(Object obj),addAll(Collection col
阅读全文
摘要:1 //接口的应用:工厂方法的设计模式 2 public class TestFactoryMethod { 3 public static void main(String[] args) { 4 IWorkFactory i = new StudentWorkFactory(); 5 i.getWork().doWork(); 6 ...
阅读全文
摘要:--4.选择雇用时间在1998-02-01到1998-05-01之间的员工姓名,job_id和雇用时间select last_name,job_id,hire_datefrom employeeswhere to_char(hire_date,'yyyy-mm-dd') between '1998-
阅读全文
摘要:1. where 子句紧随 from 子句 2. 查询 last_name 为 'king' 的员工信息 错误1: king 没有加上 单引号 select first_name, last_namefrom employeeswhere last_name = king 错误2: 在单引号中的值区
阅读全文
摘要:1 public void shellSort(int[] array) { 2 int increment = array.length; 3 do { 4 increment = increment / 2; // 增量序列 5 for (int i = increment; i = 0) && (gu...
阅读全文
摘要:1、判断101-200之间有多少个素数,并输出所有的素数。 判断素数的方法:用一个数分别除去2到sqrt(这个数),如果能被整除,则说明这个数不是素数,反之则是素数。 2、打印出所有的 "水仙花数 ",所谓 "水仙花数 "是指一个三位数,其各位数字立方和等于该数本身。 例如:153是一个 "水仙花数
阅读全文

浙公网安备 33010602011771号