Print array with Arrays.toString(array) rather than array.toString()