Kory Perry

Greenhorn
+ Follow
since Nov 20, 2020
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kory Perry

I've tried using an if statement that checks to see if the user enters '42' and if they did then it would display the cheat sheet.  However I still get a array exception error.  Is there another way of testing that will bypass the exception?
2 weeks ago
I'm in the process of writing a small battleship program.
The battleships are randomly mapped out along an index of 20.
I'm required to create a cheat sheet that displays a map of the battleship coordinates if the user enters 42 but I get an index out of bounds error.
I'm not allowed to use a try catch method to deal with this issue.  
Can anyone help me figure out how to enter a number larger than the array size to display the cheat sheet?

2 weeks ago