I am simply trying to create an array of ten numbers between 0 and 12. My program is giving me "[I@e8bb762" as output. Please help. This is my program.
public class Array {
public static void main (String [] args){
//variable
int [] row = new int [12];
for(int i= 0; i < 12; i++){
row [i] = (int)(Math.random() * 12);
}
System.out.println(row);
}
}
System.out.println(Arrays.toString(row))