в Idea все запускается и работает, но на проверку отправить не получается.
как быть то в итоге?
package com.javarush.task.task18.task1819;
/*
Объединение файлов
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
String firstFileName = new BufferedReader(new InputStreamReader(System.in)).readLine();
String secondFileName = new BufferedReader(new InputStreamReader(System.in)).readLine();
FileInputStream fileInputStream1 = new FileInputStream(firstFileName);
FileInputStream fileInputStream2 = new FileInputStream(secondFileName);
byte[] firstFile = fileInputStream1.readAllBytes();
byte[] secondFile = fileInputStream2.readAllBytes();
fileInputStream1.close();
fileInputStream2.close();
FileOutputStream fileOutputStream = new FileOutputStream(firstFileName);
fileOutputStream.write(secondFile);
fileOutputStream.write(firstFile);
fileOutputStream.close();
}
}