Using Java Arrays.equals to check content equality

Java already have a method to check arrays equality, so we can use it. I'm using Java 8 right now, but in the Javadocs this methods exists in Java 5.

http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Arrays.html#equals%28java.lang.Object[],%20java.lang.Object[]%29