This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Welcome to the ranch. There is a flaw in your code. Specifically the equals() method. You think that you have overridden it correctly. In fact, you haven't. Whenever you define equality for your custom class, you need to override the equals() method defined in the Object class. Study the method of the Object class carefully. Then look carefully at what you have written. If you are still unable to figure out the issue, revert back.
One thing immediately looks strange in your code. Why does the getX method in class myClass take a myClass object as its argument? It shouldn't take any arguments, just return x of the current object:
You get false as the second line of the output because you've not overridden the equals method of class Object correctly. The equals method is supposed to take one parameter of type Object. Your version takes a myClass instead.
So, your equals method is not overriding the equals method defined in class Object, and hence it's not called when you use Arrays.equals.
Your class naming is unconventional. In Java, class names normally start with a capital letter, for example: ArraysEquals, MyClass, instead of arraysEquals, myClass.