This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes How 2 Get info from an Array? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How 2 Get info from an Array?" Watch "How 2 Get info from an Array?" New topic
Author

How 2 Get info from an Array?

Cougar Vis
Greenhorn

Joined: May 12, 2004
Posts: 19
How do i get the info out from this code??



THANX

[EJFH: Edited code format ]
[ May 13, 2004: Message edited by: Ernest Friedman-Hill ]
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Please keep your discussion to the same thread. You can post a reply by clicking the appropriate button while viewing your earlier message.

Thanks,

Layne


Java API Documentation
The Java Tutorial
Cougar Vis
Greenhorn

Joined: May 12, 2004
Posts: 19
sory
but how do i get the value or data from the sample code?

THANX
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24168
    
  30

What do you mean here by "get value or data?" What do you want to accomplish, exactly?

You can access element i of an array myArray using myArray[i], just as is happening in the sample code. What else do you need?


[Jess in Action][AskingGoodQuestions]
Cougar Vis
Greenhorn

Joined: May 12, 2004
Posts: 19
i mean other calss access the array value on this sample
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How 2 Get info from an Array?
 
Similar Threads
double precision floating point
something more about arrays
For that if use the array? Which is the its main function?
how do i make it up to the next array?
Wanted some help about arrays