

v cem mam chybu?
zdravim, prosim vas, kde mam chybu? chci vygenerovat nahodna cisla a zapsat je do 100 mistneho pole...neprelozi se mi to s chybou: incompatible types - found int[] but expected int
jsem zacatecnik, tak na me hned nevylitnete, diky :D
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:
jj jde to, dekuju moc