For displaying the object state specific information, you need to override the toString() method.
In your case your Cup class can have a method public String toString(){ return <some String that shows objects state>;}
The output you are getting is because when you call System.out on any object the method calls the Objects toString() method, as the Object class default behavior shows the Hashcode you are getting that output.
so just override the toString() method and you will get the output the way you want it.