Any help?
package pl.codegym.task.task09.task0928;
import java.io.*;
/*
Kod się nie kompiluje...
*/
public class Solution {
public static void main(String[] args) {
System.out.println("test:");
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
try {
String plikZrodlowyNazwa = reader.readLine();
String plikDocelowyNazwa = reader.readLine();
InputStream fileInputStream = getInputStream(plikDocelowyNazwa);
OutputStream fileOutputStream = getOutputStream(plikDocelowyNazwa);
int licznik = 0;
while (fileInputStream.available() > 0) {
int dane = fileInputStream.read();
fileOutputStream.write(dane);
licznik++;
}
System.out.println("Bajty skopiowane: " + licznik);
fileInputStream.close();
fileOutputStream.close();
} catch (IOException e) {
System.out.println(e);
}
}
public static InputStream getInputStream(String nazwaPliku) throws IOException {
return new FileInputStream(nazwaPliku);
}
public static OutputStream getOutputStream(String nazwaPliku) throws IOException {
return new FileOutputStream(nazwaPliku);
}
}