Recall that when you create an array of object references, the initial value of those references is null. You have to set an individual reference in the array to point to an actual object before you call methods on it.
First, a bit of business: you may not have read our naming policy on the way in. It requires that you use a full, real (sounding) first and last name for your display name. Joke names and "handles" don't work at the Ranch. You can change your display name here. Thanks for your immediate attention.
Originally posted by Evil Otto: ... Is there a quick way to populate an array with objects without doing a for() loop? ...
The fill methods in java.util.Arraysmight work for you, depending on what exactly you need. The drawback to this method is that each index references the same object. [ February 16, 2006: Message edited by: marc weber ]
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org