04 2016 档案

摘要:java的文件读写有多种方式,在此通过代码做以下比较。 比较一:FileWriter和FileReader 输出: H 可见,FileWriter可以批量写入,但是FileReader每次只能读取一个字符。 比较二:OutputStream和InputStream 输出: H 可见,OutputSt 阅读全文

posted @ 2016-04-16 10:12 onmyway227 阅读(978) 评论(0) 推荐(1)

摘要:比较: 基本数据类型数组char[]和Character[]支持的方法相同; char[]可以通过Arrays来实现排序,查找;Character[]可以通过Collections来实现排序,查找,反转; Character[]可以通过Arrays.asList转换为List<Character>, 阅读全文

posted @ 2016-04-15 11:53 onmyway227 阅读(146) 评论(0) 推荐(0)

摘要:首先,需要手动下载jar文件包,zip或jar格式,如https://commons.apache.org/proper/commons-net/download_net.cgi 其次,将其解压在目录$JAVA_HOME/lib/ext/ 最后,配置eclipse,project-》properti 阅读全文

posted @ 2016-04-13 15:40 onmyway227 阅读(520) 评论(0) 推荐(0)

摘要:Background: Eclipse access restrictionsEclipse has a mechanism called access restrictions to prevent you from accidentally using classes which Eclipse 阅读全文

posted @ 2016-04-13 14:49 onmyway227 阅读(286) 评论(0) 推荐(0)

导航