A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
array and arraylist
auvrm papu
Ranch Hand
Joined: Sep 01, 2005
Posts: 105
posted
May 28, 2006 13:58:00
0
what is the difference between array and arraylist?
thanks
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32708
4
posted
May 28, 2006 14:26:00
0
The short answer is that an array has a fixed capacity, whereas an
ArrayList
can change its capacity as required.
Arrays are set up without using a special class; ArrayLists (capital A and L) are set up using the
java.util.ArrayList
class.
You can find out about arrays
here in the Java tutorial,
and about ArrayLists in the API specification or
here in the Java tutorial.
CR
I agree. Here's the link:
http://aspose.com/file-tools
subject: array and arraylist
Similar Threads
String array to arraylist
Date difference, with the table containing null values for date
Naming Objects
size of the list
reading a user chosen file into array
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter