yeah, I know there wasn't an array, I was too lazy to copy and paste the code, so I just showed an example
so, I think I understand, basically you have, passArray(array); , and this can also be applied with other variables too right?
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?
I have one more little problem. I'm working on a little project that swaps letters with '1337' letters, that is for instance, A becomes 4 or M becomes /\/\, I am having slight difficulty with some code.
What I'm trying to do is step through a string and using charAt(x) to see if they are equivalent or not. However I get a compiler error that char and String are incompatible types.
So is there another way I can find individual letters within a string?