Quote:error at line 14 for message=new BigInteger(args);
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0 at learnprogramming.Encryption.main(Encryption.java:14)
The error message tells you that your code was called with no parameter when it needs 3 parameters.
The only solution is to call this code with required parameters.
Quote:but this doesn't give me the required encrypted output numbers. It just prints:
java Encrypt message e n
This code is doing exactly what it is supposed to do, but it can't create missing values.
It is like trying to use a car without the keys, if you are not a thief, it can get complicated.
It is like trying to solve
c = a + b
The only possible solution is to call this code with 3 parameters.