随笔分类 -  java

摘要:import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; public class CopyFileDemo { public static void main(String[] args) { try( Fil... 阅读全文
posted @ 2019-07-02 14:12 reyinever 阅读(138) 评论(0) 推荐(0)
摘要:import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; public class FightAgainstLandlord { public static void main(String[] args) { //... 阅读全文
posted @ 2019-07-01 21:35 reyinever 阅读(357) 评论(0) 推荐(0)
摘要:public class RunnableImpDemo implements Runnable { @Override public void run() { System.out.println(Thread.currentThread().getName()); } } import java.util.concurrent.ExecutorSe... 阅读全文
posted @ 2019-07-01 21:31 reyinever 阅读(185) 评论(0) 推荐(0)
摘要:import java.io.File; public class GetFilesOfDir { public static void main(String[] args) { //创建文件对象,传入要遍历的目录 File f = new File("E:\\abc\\abc\\t"); getAllFile(f); } ... 阅读全文
posted @ 2019-07-01 21:28 reyinever 阅读(481) 评论(0) 推荐(0)