import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.PrintWriter; import java.util.Scanner; public class F1_F2_copy { public void F1_F2(File f1,File f2) { try { int i=1; //写入f2 FileW…