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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Beginning Java
How 2 Get info from an Array?
Cougar Vis
Greenhorn
Posts: 19
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How do i get the info out from this code??
String[] anArray = { cFName, cLName, cN, cA}; for (int i = 0; i < anArray.length; i++) System.out.println(anArray[i].toUpperCase());
THANX
[EJFH: Edited code format ]
[ May 13, 2004: Message edited by: Ernest Friedman-Hill ]
Layne Lund
Ranch Hand
Posts: 3061
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 19
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
sory
but how do i get the value or data from the sample code?
THANX
Ernest Friedman-Hill
author and iconoclast
Posts: 24207
46
I like...
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 19
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
i mean other calss access the array value on this sample
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
For that if use the array? Which is the its main function?
Wanted some help about arrays
how do i make it up to the next array?
double precision floating point
something more about arrays
More...