View Single Post
Old May 25th, 2006, 8:33 AM   #4
Toro
Hobbyist Programmer
 
Toro's Avatar
 
Join Date: Apr 2006
Posts: 136
Rep Power: 0 Toro is an unknown quantity at this point
Quote:
Originally Posted by chillypacman
so, I think I understand, basically you have, passArray(array); , and this can also be applied with other variables too right?
Yes, this concept can be used with variables also.

Quote:
Originally Posted by chillypacman
So I can, for arguments sake, int x = 5, then put down passArray(x);, and in the next method (or any other within the same class provided the method's name is the same as the pass I give), I can say passArray(int y); and whatever y is x is as well?
Can you explain the a little better?
Quote:
Originally Posted by chillypacman
So is there another way I can find individual letters within a string?
yes, you can make a char array using the method from the String class
[PHP]char characters[] = someString.toCharArray();[/PHP]
Toro is offline   Reply With Quote