View Single Post
Old May 27th, 2006, 8:33 AM   #2
Toro
Hobbyist Programmer
 
Toro's Avatar
 
Join Date: Apr 2006
Posts: 136
Rep Power: 0 Toro is an unknown quantity at this point
methodTwo doesn't have any variable types declared.
[PHP]
//this works
public class something
{
public void methodOne()
{
int i = 0;
int x = 4;
String word = "hello";

int[] abc = new int[26];
while( i < 26)
{
abc[i] = x;
x++;
i++;
}

methodTwo(i, x, word, abc);
}
public void methodTwo( int i, int x, String word, int abc[])
{
int a = i;
int b = x;
String c = word;
int d[] = abc;
}
}
[/PHP]
btw, please work at the issue before posting, these are common program errors and it shows us that you do not know what you are doing. I advise you to read up so references.
Toro is offline   Reply With Quote