View Single Post
  #9 (permalink)  
Old 02-01-2008, 07:50 PM
jelly's Avatar
jelly jelly is offline
Member
 
Join Date: Jan 2008
Location: Somerset, UK
Posts: 46
jelly is on a distinguished road
According to your original spec the testing should be in a separate class called TestClock so:

Code:
public class TestClock { public static void main(String[] args) { ClockRx clock = new ClockRx(); // now you can call methods in the ClockRx class. for example // print details of clock System.out.println(clock); // tick the clock clock.tick(); // print the current month name of clock System.out.println(clock.getMonthName()); // call any other methods that you want to call } }
__________________
-- Hope that helps

Last edited by jelly : 02-01-2008 at 07:55 PM.
Reply With Quote