This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes arrays Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "arrays" Watch "arrays" New topic
Author

arrays

Donald Wynn
Greenhorn

Joined: Dec 04, 2002
Posts: 29
How do I declare a array and how do I store data in that array.
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937

You may also want to consider dynamic array, -- look into ArrayList class. Or, you may realize that what you need is not really an array, but something else, such as a Map or a Set.
Eugene.
Donald Wynn
Greenhorn

Joined: Dec 04, 2002
Posts: 29
How does a map and set work?
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Check the JavaRanch newsletter for the four part series on Collections and Maps.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
 
GeeCON Prague 2014
 
subject: arrays