Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
Beginning Java
array and arraylist
auvrm papu
Ranch Hand
Posts: 105
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
what is the difference between array and arraylist?
thanks
Campbell Ritchie
Marshal
Posts: 79967
396
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Do not meddle in the affairs of dragons - for you are crunchy and good with ketchup. Crunchy tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
size of the list
Naming Objects
reading a user chosen file into array
String array to arraylist
Date difference, with the table containing null values for date
More...