上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 34 下一页
摘要: 实现进程的两种方式 继承Thread类 实现Runable接口 设置获取线程名 getName() setName() 设置获取线程优先级 setPriority(优先级大小) getPriority() 线程控制 sleep() 休眠 setDaemon() 设置守护线程 join() 等待线程 阅读全文
posted @ 2021-05-02 17:08 code-G 阅读(40) 评论(0) 推荐(0) 编辑
摘要: import java.io.*; //复制文件 public class BufferStream1 { public static void main(String[] args) throws IOException { BufferedReader bufferedReader = new 阅读全文
posted @ 2021-05-01 11:09 code-G 阅读(72) 评论(0) 推荐(0) 编辑
摘要: import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; public class InputStreamReader1 { public static void mai 阅读全文
posted @ 2021-05-01 10:53 code-G 阅读(97) 评论(0) 推荐(0) 编辑
摘要: import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; //字符流写数据的五种方式 public class OutputStreamWrite1 { public 阅读全文
posted @ 2021-05-01 10:46 code-G 阅读(250) 评论(0) 推荐(0) 编辑
摘要: import java.io.BufferedInputStream; import java.io.FileInputStream; import java.io.IOException; //字节缓冲流 public class BufferInputStream1 { public stati 阅读全文
posted @ 2021-05-01 10:15 code-G 阅读(50) 评论(0) 推荐(0) 编辑
摘要: import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; //字节流复制文件 public class FileInputStream2 { public static v 阅读全文
posted @ 2021-05-01 09:52 code-G 阅读(46) 评论(0) 推荐(0) 编辑
摘要: import java.io.FileInputStream; import java.io.IOException; //读取数据 public class FileInputStream1 { public static void main(String[] args) throws IOExc 阅读全文
posted @ 2021-05-01 09:48 code-G 阅读(683) 评论(0) 推荐(0) 编辑
摘要: import java.io.FileOutputStream; import java.io.IOException; //字节流写数据 public class FileOutputStream1 { public static void main(String[] args) throws I 阅读全文
posted @ 2021-05-01 09:23 code-G 阅读(101) 评论(0) 推荐(0) 编辑
摘要: import java.io.File; //删除文件 public class FileDemo4 { public static void main(String[] args) { //1.删除文件 File file = new File("E:\\Workpace\\java.txt"); 阅读全文
posted @ 2021-04-30 23:19 code-G 阅读(417) 评论(0) 推荐(0) 编辑
摘要: import java.io.File; //File类判断和获取功能 public class FileDemo3 { public static void main(String[] args) { File file = new File("E:\\Workpace\\java.txt"); 阅读全文
posted @ 2021-04-30 23:10 code-G 阅读(200) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 34 下一页