Убедись, что класс FileConsoleWriter содержит пять конструкторов.
Ну и в методах шо ему не нравится, не пойму
package com.javarush.task.task19.task1917;
import java.io.*;
import java.util.Arrays;
/*
Свой FileWriter
*/
public class FileConsoleWriter {
public FileConsoleWriter() throws IOException {
}
public static void main(String[] args) {
}
private FileWriter fileWriter;
private BufferedWriter consoleWriter = new BufferedWriter(new OutputStreamWriter(System.out));
public FileConsoleWriter(String fileName) throws IOException {
this.fileWriter = new FileWriter(fileName);
}
public FileConsoleWriter(String fileName, boolean append) throws IOException {
this.fileWriter = new FileWriter(fileName, append);
}
public FileConsoleWriter(File fileName) throws IOException {
this.fileWriter = new FileWriter(fileName);
}
public FileConsoleWriter(File fileName, boolean append) throws IOException {
this.fileWriter = new FileWriter(fileName, append);
}
public FileConsoleWriter(FileDescriptor fd) {
this.fileWriter = new FileWriter(fd);
}
public void write(int c) throws IOException{
fileWriter.write(c);
System.out.println(c);
}
public void write(String str) throws IOException{
fileWriter.write(str);
System.out.println(str);
}
public void write(String str, int off, int len) throws IOException{
fileWriter.write(str, off, len);
consoleWriter.write(str, off, len);
}
public void write(char[] cbuf) throws IOException{
fileWriter.write(cbuf);
System.out.println(cbuf);
}
public void close() throws IOException{
fileWriter.close();
}
public void write(char[] cbuf, int off, int len) throws IOException{
fileWriter.write(cbuf, off, len);
consoleWriter.write(cbuf, off, len);
}
}