the program appears to work as per requirements but wont pass the validation (again !!) . any insight please. many thanks
package com.codegym.task.task18.task1826;
/*
Encryption
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws IOException {
FileInputStream fileInputStream = new FileInputStream(new File(args[1]));
FileOutputStream fileOutputStream = new FileOutputStream(new File(args[2]));
switch (args[0]) {
case "-e": //encyption
while (fileInputStream.available()>0){
fileOutputStream.write(fileInputStream.read()+1);
}
break;
case "-d": //decryption
while (fileInputStream.available()>0){
fileOutputStream.write(fileInputStream.read()-1);
}
break;
}
fileInputStream.close();
fileOutputStream.close();
}
}