Что не так?
package com.javarush.task.task22.task2211;
import java.io.*;
public class Solution {
public static void main(String[] args) {
try {
FileInputStream fileIn = new FileInputStream(args[0]);
InputStreamReader stremRead = new InputStreamReader(fileIn, "Windows-1251");
FileOutputStream fileOut = new FileOutputStream(args[1]);
OutputStreamWriter stremWr = new OutputStreamWriter(fileOut, "UTF-8");
int charIn;
while ((charIn = stremRead.read()) != -1) {
stremWr.write(charIn);
}
}
catch (IOException e){
System.out.println(e);
}
}
}