This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "arrays" Watch "arrays" New topic


Donald Wynn

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.
Donald Wynn

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
I agree. Here's the link:
subject: arrays
It's not a secret anymore!