随笔分类 -  Java

摘要:原因:eclipse 默认是 5.0编译。解决办法:项目右键->properties->java compier 里面的编译等级调为现有jdk等级 阅读全文
posted @ 2014-07-19 21:17 Mr_Clint 阅读(145) 评论(0) 推荐(0)
摘要:1 for(int i = 0;i<array.size();i++){ 2 Goods g = array.get(i); 3 File file = new File("d://goodsInfo.txt"); 4 FileOutputStream fos1 = new FileOutputStream(file, true); 5 // 创建FileOutputStream对应的PrintStream,方便操作。PrintStream的写入接口更便利 6 ... 阅读全文
posted @ 2014-03-08 23:17 Mr_Clint 阅读(8924) 评论(0) 推荐(1)