In java, I'm trying to make a private field for an ArrayList with objects in it, but I'm unsure how exactly this is done. Is this the correct way to do it, or is there another way?
public class EllipsoidList {
private String name = " ";
private ArrayList<Ellipsoid> objList = new ArrayList<Ellipsoid>();
} //+++ END OF CLASS +++