Please Google for an ArrayList tutorial and check the API. You're still not adding any objects to the list, you're still guessing at how to work with Lists, and you're not using any of the methods...
Type: Posts; User: curmudgeon
Please Google for an ArrayList tutorial and check the API. You're still not adding any objects to the list, you're still guessing at how to work with Lists, and you're not using any of the methods...
regarding
public Vector<Carton> carton; //is this correct ???
This looks good. Just a personal nitpic, but I'd name the variable cartons because it will hold references to more than one...
This will only create an array variable filled with nulls. You will still need to use a for loop to fill the array with Carton objects.