Borderou de evaluare (job #1269157)

Utilizator dragangabrielDragan Andrei Gabriel dragangabriel Data 21 noiembrie 2014 22:32:59
Problema Tamplar Status done
Runda Arhiva de probleme Compilator java | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: Main.java:18: error: no suitable constructor found for PrintWriter(FileInputStream) PrintWriter writer = new PrintWriter(new FileInputStream("tamplar.out")); ^ constructor PrintWriter.PrintWriter(File,String) is not applicable (actual and formal argument lists differ in length) constructor PrintWriter.PrintWriter(File) is not applicable (actual argument FileInputStream cannot be converted to File by method invocation conversion) constructor PrintWriter.PrintWriter(String,String) is not applicable (actual and formal argument lists differ in length) constructor PrintWriter.PrintWriter(Charset,File) is not applicable (actual and formal argument lists differ in length) constructor PrintWriter.PrintWriter(String) is not applicable (actual argument FileInputStream cannot be converted to String by method invocation conversion) constructor PrintWriter.PrintWriter(OutputStream,boolean) is not applicable (actual and formal argument lists differ in length) constructor PrintWriter.PrintWriter(OutputStream) is not applicable (actual argument FileInputStream cannot be converted to OutputStream by method invocation conversion) constructor PrintWriter.PrintWriter(Writer,boolean) is not applicable (actual and formal argument lists differ in length) constructor PrintWriter.PrintWriter(Writer) is not applicable (actual argument FileInputStream cannot be converted to Writer by method invocation conversion) 1 error

Ceva nu functioneaza?