This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
You can compare arrays with the Arrays class. But be sure to read the javadoc because the methods in it have some curiosities. For instance that Arrays.equals(Object a, Objectb) compares using == and not the equals method.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.