![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
I am coming from a C++ backround but haven't programmed in a few years. I am repeatedly making the same mistake and I think its due to a general error in how I'm trying to solve things. I keep getting nullpointer exception when I try to create an array of class objects. This also happens when I try to use methods from another class. I have read Java in a Nutshell. I'm not sure I can make my problem any clearer right now because I've been staring at it and fiddling with it so long I don't know what is going on anymore. Can anyone point me to a simplest case scenario of object oriented class use in java? Thanks and sorry to just jump in with a general question like this.
Replies:
|
Sponsored Links
|