Thread
:
Simple Java class + driver program help. Program isn't working, but should be.
View Single Post
Oct16-11, 07:00 PM
#
3
AlephZero
Recognitions:
Science Advisor
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.