Okay, I have slept, I feel better, this is starting to sink back in. I thank you all for your effort. Somehow, I know that you understand.
One last thing, in the following example
public void exampleMethod(MyClass myObj) {
if (myObj instanceof MyClass) {
System.out.println("Life is good!");
}
else {
System.out.println("Wrong type passed in");
}
}
This would seem to be a good use for instanceof. BUT, will it cause a runtime exception or anything if someone calls it by casting a Frog object to a MyClass? exampleMethod((MyClass)myFrog)); Or will it simply return false?
I know, I know, take the code I just wrote and go test it. And I can, and I will.
I just wanted you to know how bad it has gotten over here!!!
Thanks again folks!
Bob
[ June 24, 2008: Message edited by: Bob Ruth ]
what do you use for a tab in QUOTES? When I hit tab nothing happens and spaces are peeled out?
[ June 24, 2008: Message edited by: Bob Ruth ]