The variable: box is not a String. You need to look at the assignment to see what the method should return.
NOTE: All posts for this topic have been merged.
Type: Posts; User: Norm
The variable: box is not a String. You need to look at the assignment to see what the method should return.
NOTE: All posts for this topic have been merged.
Call the println() at the end of each row to put the next row on a new line.
The encrypt method should return the encrypted String, not the array it uses to build the String.
Go back and read the...
You need to add line end character at the place in the output where you want the following characters to go to a new line. The print() method will print everything on the same line.
Call the...
Is the code working now? If you are having problems, please explain.
The max index for s is 31. The error message says there was an index with a value of 32.
What printed out for the value of counter?
Post the output and the statement that is making it. Why do...
box is an array of arrays. Its size is 6
box[i] is one of the arrays that is in the box array. What was its size?
What were the other values requested in post#7 that were printed out?
Add a println statement just before the statement where the error happens that prints out the values of the indexes: i, j and counter.
Also print out the size of the arrays that are being indexed:...