I don't understand why it's not passing test. Please help me with that.
package pl.codegym.task.task18.task1826;
/*
Szyfrowanie
*/
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
public class Solution {
public static void main(String[] args) throws IOException {
String choice = args[0];
String fileName = args[1];
String fileOutputName = args[2];
switch (choice) {
case "-e":
try (FileReader fileReader = new FileReader(fileName);
FileWriter fileWriter = new FileWriter(fileOutputName)) {
while (fileReader.ready()) {
fileWriter.write(fileReader.read() + 303);
}
}
case "-d":
try (FileReader fileReader = new FileReader(fileName);
FileWriter fileWriter = new FileWriter(fileOutputName)) {
while (fileReader.ready()) {
fileWriter.write(fileReader.read() - 303);
}
}
}
}
}