Java SE 5
Since Java 1.5 you can get a String representation of the contents of the specified array without iterating over its every element. Just use Arrays.toString(Object[]) or Arrays.deepToString(Object[]) for multidimentional arrays:
int[] arr = {1, 2, 3, 4, 5};
System.out.println(Arrays.toS...