只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-11-17 00:08 坚持沉淀 阅读(1) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-11-16 23:25 坚持沉淀 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Properties类加载属性文件加载是开发中常用的一种方法。可以达到低耦合、高内聚的作用 注:properties属性文件必须方法src目录下,否则load()加载器无法找到properties属性文件。 方法如下: Properties props = new Properties(); pro 阅读全文
posted @ 2017-11-16 17:22 坚持沉淀 阅读(335) 评论(0) 推荐(0) 编辑
摘要: ResultSet rs = stmt.executeQuery("select name,health,love,strain from dog where name='美美'"); 不能改成如下形式。 ResultSet rs = stmt.executeQuery("select name,h 阅读全文
posted @ 2017-11-16 17:01 坚持沉淀 阅读(519) 评论(0) 推荐(0) 编辑
摘要: 原因是没有在类中加载驱动jar包。需要在项目中引入jar包 阅读全文
posted @ 2017-11-16 16:45 坚持沉淀 阅读(235) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-11-16 15:34 坚持沉淀 阅读(4) 评论(0) 推荐(0) 编辑
摘要: static 不能被继承 阅读全文
posted @ 2017-11-16 11:55 坚持沉淀 阅读(225) 评论(0) 推荐(0) 编辑
摘要: new Thread ( new Runnable() { @Override /** * 重写Runnalbe接口类中的方法。 * run()方法是Runnable接口类里面的一个抽象方法,该类中只有一个方法而且是一个抽象方法 * 所以在此需要重写接口里的方法 */ public void run 阅读全文
posted @ 2017-11-15 15:32 坚持沉淀 阅读(116) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-11-15 09:01 坚持沉淀 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1、实现List接口的常见类有:ArrayList、LinkedList。 ArrayList、LinkedList度可以容纳所有类型的对象,包括null、允许重复、有序。 2、ArrayList、LinkedList的存储方式: ArrayList:采用数组的形式,即在内存中分配连续的空间 Lin 阅读全文
posted @ 2017-09-08 16:49 坚持沉淀 阅读(121) 评论(0) 推荐(0) 编辑