|
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.
|