Search:

Type: Posts; User: curmudgeon

Search: Search took 0.14 seconds.

  1. Replies
    8
    Views
    1,408

    Re: how to create multiple objects

    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...
  2. Replies
    8
    Views
    1,408

    Re: how to create multiple objects

    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...
  3. Replies
    8
    Views
    1,408

    Re: how to create multiple objects

    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.
Results 1 to 3 of 3