I have a class - xClass, that I want to load into an array of xClass so I the declaration:
xClass mysclass[] = new xClass[10]; myclass[0] = new xClass(); my
Yes, wrap it and use the Collections framework.
List l = new ArrayList(); l.add(new xClass()); // do stuff l.add(new xClass());
Then use List.toArray() when necessary, or just iterate over said List.