Computer Science (CSCI) Department
College of Engineering, Computer Science, & Technology (ECST)

JETT Workshops
Java Basics

Fall 2004

 

More on Methods
(Example code and figures from Computing Concepts with Java Essentials, 3rd edition, by Cay Horstmann.
Visit www.wiley.com/college/horstmann for information on the current edition of this excellent text.)


Exercise - write a test class to exercise these classes

  • save these classes
  • write a new PurseTest.java
    • create a Purse
    • create some Coin objects to add to the Purse

  • move your main( ) method into Purse.java and dispense with PurseTest.java