Isn't garbage. Is the default implementation of toString
for this class.
The easiest way to get the elements printed on a readable format is:
String printed = Arrays.toString(x);
Documentation for Arrays.toString(int[])
The same approach can be used to print out array of primitives
and Objects
.
No comments:
Post a Comment