文件操作try { int n; boolean flag; Scanner in = new Scanner(System.in); flag = true; while (flag){ System.out.println("输入操作选择"); System.out.println("1:文件复制"); System.out.println("2:文件剪切"); System.out.println("3:文件夹复制"); System.out.println("4:文件夹剪切"); n = in.nextInt