So my only real option then is to handle it within the main? Gotcha. I was hoping to avoid cluttering my main with Try/Catches, but alas. :) Thanks!
Type: Posts; User: StuckInJava
So my only real option then is to handle it within the main? Gotcha. I was hoping to avoid cluttering my main with Try/Catches, but alas. :) Thanks!
Hi. I have a problem with an exception error, using an array. The problem is when I pass an object out of the array into my petAnimal method, it doesn't catch the ArrayIndex Exception... ? If I put...
I think I got it. Here's the code for anyone who needs some help with this in the future:
boolean run = false;
boolean run2 = false;
do
{
System.out.println("Introduction.");...
How do I get the external loop to start over tho?
Ahoy. I'm trying to write me a menu driven program, and I'm having a heck of a time figuring out how to break out of a loop and up a level.
Scanner stuff here, user input variable from keyboard...