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

08-22-2010, 08:25 PM

JosAH

Quote:

Originally Posted by murph

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

08-22-2010, 08:29 PM

murph

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.

08-22-2010, 08:33 PM

JosAH

Quote:

Originally Posted by murph

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

08-22-2010, 09:53 PM

murph

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

08-22-2010, 10:14 PM

Lil_Aziz1

Quote:

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):

Code:

ArrayList myList = new ArrayList();

Looks like school has started for most of us.

08-22-2010, 10:38 PM

Fubarable

Quote:

Originally Posted by murph

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?

08-23-2010, 09:25 AM

JosAH

Quote:

Originally Posted by murph

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.