Последнее условие не проходит. Подскажите пожалуйста.
package com.javarush.task.task31.task3103;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;
/*
Своя реализация
*/
public class Solution {
public static byte[] readBytes(String fileName) throws IOException {
byte[] content = Files.readAllBytes(Paths.get(fileName));
return content;
}
public static List<String> readLines(String fileName) throws IOException {
List<String> list = Files.readAllLines(Paths.get(fileName), Charset.defaultCharset());
return list;
}
public static void writeBytes(String fileName, byte[] bytes) throws IOException {
Files.write(Paths.get(fileName), bytes);
}
public static void copy(String resourceFileName, String destinationFileName) throws IOException {
byte[] content = Files.readAllBytes(Paths.get(resourceFileName));
Files.copy(Paths.get(resourceFileName), Files.write(Paths.get(destinationFileName), content));
}
}