Почему не компилируется? Мне даже ошибку не выдает
package com.javarush.task.task18.task1826;
import java.io.*;
/*
Шифровка
*/
public class Solution {
public static void main(String[] args) throws IOException {
if (args[0].equals("-e")){
try (FileInputStream fileInputStream = new FileInputStream(args[1]);
FileOutputStream fileOutputStream = new FileOutputStream(args[2])){
byte[] b = fileInputStream.readAllBytes();
byte[] reversB = new byte[b.length];
for(int i = 0; i<b.length; i++){
reversB[b.length - 1 - i] = b[i];
}
fileOutputStream.write(reversB);
}catch (IOException e){
e.printStackTrace();
}
}else if(args[0].equals("-d")){
try (FileInputStream fileInputStream1 = new FileInputStream(args[1]);
FileOutputStream fileOutputStream1 = new FileOutputStream(args[2])){
byte[] b1 = fileInputStream1.readAllBytes();
byte[] reversB1 = new byte[b1.length];
for(int i = 0; i<b1.length; i++){
reversB1[b1.length - 1 - i] = b1[i];
}
fileOutputStream1.write(reversB1);
}catch (IOException e){
e.printStackTrace();
}
}
}
}