Ta metoda musí být definována tak, že vrací pole. Tedy:
public class genPole
{
public static int[] uzivatel()
{
int [] pole = new int [100];
for(int i=0; i < 99; i++)
{
pole[i] = (int) (Math.random()*100);
}
return pole;
}
}
Ta metoda musí být definována tak, že vrací pole. Tedy:
public class genPole
{
public static int[] uzivatel()
{
int [] pole = new int [100];
for(int i=0; i < 99; i++)
{
pole[i] = (int) (Math.random()*100);
}
return pole;
}
}