摘要: public static void main(String[] args) { final Timer timer = new Timer(); TimerTask task = new TimerTask(){ int count = 0; int wj = 10; @Override public void run() { count++; if (count % 4 == 0) { ... 阅读全文
posted @ 2018-10-16 23:59 陈程序员 阅读(270) 评论(0) 推荐(0) 编辑
摘要: byte(1个字节8位-128~127)\ char(2个字节 16位)\ int(4个字节 32位)\ long(8个字节 64为)\ float(4个字节 32位)\ double(8个字节 64位) 阅读全文
posted @ 2018-10-16 22:50 陈程序员 阅读(225) 评论(0) 推荐(0) 编辑
摘要: try { } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); }finally{ } 1:finally并不是必须存在的,不过开发过程中建议加上finally,里面可以使用来执行打印日子代码 阅读全文
posted @ 2018-10-16 22:47 陈程序员 阅读(3796) 评论(0) 推荐(0) 编辑
摘要: 下图是Collection的类继承图 从图中可以看出:Vector、ArrayList、LinkedList这三者都实现了List 接口.所有使用方式也很相似,主要区别在于实现方式的不同,所以对不同的操作具有不同的效率。 ArrayList 就是动态数组,是Array的复杂版本,动态的增加和减少元素 阅读全文
posted @ 2018-06-10 18:20 陈程序员 阅读(251) 评论(0) 推荐(0) 编辑