public class mdar {
public void cont(){
Random rand = new Random();
int con = 100;
int multi[][]=new int [con][6];
for(int x = 0;x<multi.length;x++){
for(int y = 0;y<multi[x].length;y++){
int temp = rand.nextInt(9);
multi[x][y] = multi[x+1][temp]; //this line is going bad
}
}
for(int i=0;i<multi.length;i++){
System.out.print("contester "+multi[i]);
for(int j=0;j<multi[i].length;j++){
System.out.println(" has "+multi[i][j]+" ");
}
System.out.println();
}
}
}
I deleted my old project and so i was trying to remake it and i can't figure it out anymore :S Could someone help me out here?