I'm trying to Insert some random numbers with the same index in an array but something doesn't work. It says "cannot find symbol". This error is the same with Insert and Splice
the code:
Random randGromulls = new Random();
for (int g = 0; g < 10; g++) {
g++;
int k = randGromulls.nextInt(10);
int igual = k;
taula.Insert(k, igual);
//taula.splice(k, 0, igual); this does not work either
}
Aucun commentaire:
Enregistrer un commentaire