When trying to run the following code:
public static void main(String[] args) {
int num_amount = 7;
int[] num_array = {3, 4, 1, 1, 2, 12, 1};
System.out.println(num_array.length);
for (int i = 0; i < num_array.length; i++) {
num_array[i] = 0;
System.out.println(num_array);
}
}
This is the output i get:
7
[I@ea30797
[I@ea30797
[I@ea30797
[I@ea30797
[I@ea30797
[I@ea30797
[I@ea30797
Has anyone ever experienced this "unusual" result? If so, what solution did you try out? Thanks in advance.