• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How 2 Get info from an Array?

 
Cougar Vis
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Cougar Vis
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sory
but how do i get the value or data from the sample code?

THANX
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Cougar Vis
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i mean other calss access the array value on this sample
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic