服务器端代码 import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; import java.util.ArrayList; public class Server { private static ArrayList<Socket> list = new ArrayList<Socket>(); public static void main(String[] args)…
public class TestFileInputStream { public static void main(String [] args) { //读取指定文件中内容,并在控制台输出 FileInputStream fis = null; byte[] b = new byte[1024]; int len = 0; try { fis = new FileInputStream("E:\\javafile\\ja.txt"); while((len = fis.read(b…