View Single Post
  #6 (permalink)  
Old 04-25-2008, 07:27 AM
sukatoa's Avatar
sukatoa sukatoa is offline
Senior Member
 
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 527
sukatoa is on a distinguished road
Send a message via Yahoo to sukatoa
String array[] = {"Me","You","Them","Us","Other","They"};

Can you access every element of an array?

If not, try to have an experiment....

String s = array[3];
int len = array.length;
String s1 = array[7];
String s2 = array[-1];
Try to observe the output....

By storing an input to an array,
array[0] = "Chupacabras";
array[1] = "Rasta";
array[2] = true;
array[3] = false;
Try to observe what happens now when you seek again the value of every element of the array.... ( showing it again ).....

But it is important to read a tutorials about arrays....
There are more and understandable explanations there....
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote