title: Easily overriding toString() for Java's built-in classes
body: <p>I have a simple program which processes an M x N matrix. When done processing, I want to print out the matrix to standard output. I'm aware that I can write some method e.g. static [void/String] matrixPrint(int[][] myMatrix) to either print out the matrix or return a String representation of it. </p>
  
  <p>However I'm thinking that a more elegant solution would be to override the toString() method in the Arrays class. That way I could just call System.out.println(myMatrix), which seems to me to be more clear and elegant code than either of the above. </p>
  
  <p>Is there an easy way to do this without creating another class that extends Arrays? Or are there other ways to elegantly print out objects from Java's built-in classes?</p>