This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Hi, Welcome to JavaRanch! Add a static int member to the class. In each constructor, increment this variable. The variable will then represent the total number of objects created. You may also want a static "getCount()" method to fetch that info.
This isn't a Servlets question, so I'm requesting a chang of venue to the Java In General (beginner) forum. Please continue the conversation here. bear [ October 20, 2003: Message edited by: Jessica Sant ]