摘要: DriverManager 管理JDBC驱动的服务类,主要通过它获取Connection数据库链接 管理JDBC驱动的服务类,主要通过它获取Connection数据库链接 Connection常用数据库 Statement PreparedStatement 预编译的statement对象,Prep 阅读全文
posted @ 2016-12-15 09:32 chEnYoNg11 阅读(147) 评论(0) 推荐(0) 编辑
摘要: package com.io; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileNotFoundException; import java.io.IOException; public class Test2 { /** ... 阅读全文
posted @ 2016-12-15 08:34 chEnYoNg11 阅读(116) 评论(0) 推荐(0) 编辑
摘要: class DvdSet { //定义三个属性 String[] name = new String[50]; // 为保证数组足够大 String[] date = new String[50];// 借书的时间 int[] state = new int[50]; // 借书的状态 , 0表示借出 ,1.表示可以借。 int[] c... 阅读全文
posted @ 2016-11-18 15:41 chEnYoNg11 阅读(8993) 评论(1) 推荐(0) 编辑
摘要: 选择排序 class Demo { public static void main(String[] args) { //需求:指定一个int类型的数组,给一定元素,将元素从小到大进行排序。 //初始化一个数组 int[] arr = {7,3,9,12,6,2}; //选择排序 : 效率太低比较的 阅读全文
posted @ 2016-11-14 19:54 chEnYoNg11 阅读(16904) 评论(0) 推荐(1) 编辑
摘要: jQuery 选择选取元素 jQuery选择器 ID选择器(js一般尽量用ID选择器,效率最高) $("#id").html(); 类选择器 $(".className").text(); 标签选择器 $('p').click() 属性选择器 $("li[id]")、 $("li[id='link' 阅读全文
posted @ 2016-11-05 09:04 chEnYoNg11 阅读(86) 评论(0) 推荐(0) 编辑
摘要: JS 一、词法结构 1.区分大小写 2.注意 //单行 /* 多行注释 */ 3.字面量(直接量 literal) 12 数字 5.8 小数 “hello” ‘hello’ true /js/gi //正则 null //空 {x:1,y:2} {1,2,3,4} 4.标识符(变量)和保留字 5.分 阅读全文
posted @ 2016-11-05 08:54 chEnYoNg11 阅读(169) 评论(1) 推荐(0) 编辑