上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: 批量创建文件 1 int cont = 1; 2 String s = "E:\\学习资料\\Java笔记-"; 3 while(cont<100){ 4 File f = new File(s+cont+".txt"); 5 if(!f.exists()){ 6 f.createNewFile() 阅读全文
posted @ 2016-07-22 17:44 Web1024 阅读(1324) 评论(0) 推荐(0) 编辑
摘要: 使用ServerSocket类和Socket类实现服务端与客户端的通讯 阅读全文
posted @ 2016-07-22 14:34 Web1024 阅读(23277) 评论(1) 推荐(0) 编辑
摘要: eclipse的汉化方法之一 阅读全文
posted @ 2016-07-21 19:55 Web1024 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 使用Collections类的sort(),reverse(),shuffle()方法对集合中的元素进行顺序、倒序、随机排序操作 阅读全文
posted @ 2016-07-21 19:38 Web1024 阅读(109210) 评论(1) 推荐(1) 编辑
摘要: 使用Java的Thread类和FileInputStream、FileOutputStream类实现文件的复制功能 阅读全文
posted @ 2016-07-21 15:44 Web1024 阅读(8707) 评论(0) 推荐(0) 编辑
摘要: Java学习笔记 阅读全文
posted @ 2016-07-20 17:15 Web1024 阅读(1787) 评论(0) 推荐(0) 编辑
摘要: FileInputStream类和FileOutputStream类的使用 阅读全文
posted @ 2016-07-20 13:49 Web1024 阅读(4071) 评论(0) 推荐(0) 编辑
摘要: Java中File类只用于表示文件(目录)的信息(名称、大小等),不能用于文件内容的访问 阅读全文
posted @ 2016-07-20 09:12 Web1024 阅读(497) 评论(0) 推荐(0) 编辑
摘要: Java集合中使用Comparator和Comparable两个接口对引用类型泛型的List集合进行排序 阅读全文
posted @ 2016-07-19 11:25 Web1024 阅读(527) 评论(0) 推荐(0) 编辑
摘要: 在List的排序中常用的是Collections.sort()方法,可以对String类型和Integer类型泛型的List集合进行排序。 首先演示sort()方法对Integer类型泛型的List排序 打印输出的结果为: 对String类型泛型的List进行排序 打印输出的结果为: 使用sort( 阅读全文
posted @ 2016-07-19 10:58 Web1024 阅读(8317) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页