Results 1 to 8 of 8
  1. #1
    murph is offline Member
    Join Date
    Aug 2010
    Posts
    3
    Rep Power
    0

    Default ArrayList Object Field

    I am a complete beginner at Java. What is an ArrayList object field and how do I make one?

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,783
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by murph View Post
    I am a complete beginner at Java. What is an ArrayList object field and how do I make one?
    Have you read the API documentation or a tutorial on the subect?

    kind regards,

    Jos

  3. #3
    murph is offline Member
    Join Date
    Aug 2010
    Posts
    3
    Rep Power
    0

    Default

    I have tried numerous times to find something decent on google but I am getting jibberish, even some results relating to oil consumption, hence why I asked here.

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,783
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by murph View Post
    I have tried numerous times to find something decent on google but I am getting jibberish, even some results relating to oil consumption, hence why I asked here.
    Here is the API documentation and here is a link to all the tutorials.

    kind regards,

    Jos

  5. #5
    murph is offline Member
    Join Date
    Aug 2010
    Posts
    3
    Rep Power
    0

    Default

    I ask for the definition of a single term and you hand me an entire book? Um okay, that's helpful.

  6. #6
    Lil_Aziz1's Avatar
    Lil_Aziz1 is offline Senior Member
    Join Date
    Dec 2009
    Location
    United States
    Posts
    343
    Rep Power
    5

    Default

    What is an ArrayList object field and how do I make one?
    I don't understand the former.

    This is how you make one (generic is excluded):
    Java Code:
    ArrayList myList = new ArrayList();
    Looks like school has started for most of us.
    "Experience is what you get when you don't get what you want" (Dan Stanford)
    "Rise and rise again until lambs become lions" (Robin Hood)

  7. #7
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by murph View Post
    I ask for the definition of a single term and you hand me an entire book? Um okay, that's helpful.
    Indeed it was. If we can teach you to use the tutorials and the API (teach you to learn how to fish), you will benefit more than if we spoon feed you the answer (give you a fish). Me comprende?

  8. #8
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,783
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by murph View Post
    I ask for the definition of a single term and you hand me an entire book? Um okay, that's helpful.
    Yep; at least download the complete API documentation, you'll need it (I need it too). Keep it for reference when you want to implement something. More often then not we see people struggle with something while some classes already have implemented it and are available trhough the API.

    The tutorials are for studying; at least read about the basics of the language and some core classes before you attempt to implement something.

    kind regards,

    Jos

Similar Threads

  1. Replies: 3
    Last Post: 03-15-2010, 09:44 PM
  2. Replies: 1
    Last Post: 03-04-2009, 07:14 PM
  3. Object Reflection: Getting field value
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-23-2008, 09:12 PM
  4. object instantiation and arrayList
    By lockmac in forum New To Java
    Replies: 5
    Last Post: 08-09-2007, 07:25 PM
  5. how to return an object from an arraylist
    By elizabeth in forum New To Java
    Replies: 1
    Last Post: 07-30-2007, 07:57 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
  •