摘要: 服务器端 1 public static void main(String[] args) throws IOException { 2 System.out.println("服务器开启监听"); 3 ServerSocket server=new ServerSocket(6666); 4 So 阅读全文
posted @ 2017-11-16 22:22 _Jane 阅读(731) 评论(0) 推荐(0) 编辑
摘要: 一、java.io.File类 String path="E:/222/aaa";//路径 String path1="aaa.txt"; File file=new File(path+"/"+path1);//创建一个路径对象 常用方法: boolean exists = file.exists 阅读全文
posted @ 2017-11-16 10:49 _Jane 阅读(2096) 评论(0) 推荐(0) 编辑