一、创建输出流对象表示的文件三种方式
方法一:
FileOutputStream fos new FileOutputStream("fos.txt",true);//最简便方法二:
FileOutputStream fos new FileOutputStream(new File("fos.txt"));方法三;
File f ne…
欢迎阅读前序课程JavaEE 多线程第二节 (多线程的简单实现Thread/Runable)-CSDN博客 1. lambda方法实现多线程 public class Test {public static void main(String[] args) throws InterruptedException {Thread t new Thread(()->{while (true){System.out.println("…