The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2001



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.



Posted by matt on December 08, 2001 at 4:20 PM

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.


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us