Dumb question
I have another
thread going for my nullPointerException error
and am still troubleshooting it but I'm wondering if this might
be the problem, or just something I'm not getting at the moment.
Our class has us coding from pseudo code. Not a good way to learn
Java.
the pseudo I have a question about is this:
This is my coding for the class it appears in:
Sorry to use so much code for the question.
What I'm wondering is ----
where does currentShape come from.
I have 11 class files in this project, and I'm not defining it anywhere that I can see. This is early in the main method, so it should be defined and initialized or assigned or whatever before I'm using it, but if it's there I'm blind. Did the teacher throw a curve and I'm using the wrong name maybe? or is this some internal JAVA thing that's refering to the array created in myFields. It has a shape field in it.
The more I learn the more confused I get
HELP PLEASE
I need to get this running and turned in tonight, last project of the semester.
Thanks