View Single Post
AlephZero
#3
Oct16-11, 07:00 PM
Engineering
Sci Advisor
HW Helper
Thanks
P: 6,948
If you want System.out.println(A) to do something nice, you need to provide a toString() method for your class. Otherwise, A gets printed by the toString() method in the "object" class, whcih won't print anything very interesting.