Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Non-Static Variables in Static Methods

807569Aug 31 2006 — edited Aug 31 2006
I've been working away on this today and it's got to the stage where I cannot figure out what the hell is wrong.

In my static main method I have declared an array a of type Account, which has been declared in its own class. However when I try and do something to the array in another method, which incidentally is static. It claims it cannot find the symbol a, as if it is has not been created at all?

Any suggestions? Can post code if it helps
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 28 2006
Added on Aug 31 2006
3 comments
126 views