Results 1 to 2 of 2
  1. #1
    lisa.lipsky is offline Member
    Join Date
    Jul 2009
    Posts
    8
    Rep Power
    0

    Default arraylist question

    I'm currently doing an array of ArrayList such as the one below

    Java Code:
    ArrayList[] data2 = new ArrayList[3];
    data2[0] = new ArrayList();
    data2[0].add("String");
    but how can make it into 3D with this arraylist? For example, I'm trying to store have "ANIMAL_KINGDOM" that can store "FISH", "MAMMALS" and "REPTILES" and then in "MAMMALS" I can store the different types of mammals like "MONKEY", "LION" and so on.

    Any suggestions? Thanks.

  2. #2
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    835
    Rep Power
    6

    Default

    Gothru Sun Tutorial.Please don't assume something without reading anything.
    Ramya:cool:

Similar Threads

  1. Question mark colon operator question
    By orchid in forum Advanced Java
    Replies: 9
    Last Post: 12-19-2010, 08:49 AM
  2. Arraylist
    By gnarly hogie in forum New To Java
    Replies: 2
    Last Post: 12-11-2008, 01:59 AM
  3. Replies: 2
    Last Post: 04-21-2008, 11:43 AM
  4. ArrayList
    By kizilbas1 in forum New To Java
    Replies: 1
    Last Post: 01-12-2008, 08:48 PM
  5. Help ArrayList.add()
    By eNine in forum New To Java
    Replies: 2
    Last Post: 08-06-2007, 01:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •