View Single Post
  #7 (permalink)  
Old 02-01-2008, 02:00 PM
jelly's Avatar
jelly jelly is offline
Member
 
Join Date: Jan 2008
Location: Somerset, UK
Posts: 46
jelly is on a distinguished road
Yes that is what hardwired is saying. Whenever you try to run a java class the system looks for a method with the signature

Code:
public static void main(String[] args)
and that is where your code starts executing. What you need to do is instantiate your clock class and then call the methods as you need them

Code:
public static void main(String[] args) { ClockRx clock = new ClockRx(); // now you can access fields and call // methods in the ClockRx class. for example // print details of clock System.out.println(clock.); // tick the clock clock.tick(); // print details of clock System.out.println(clock.); }
__________________
-- Hope that helps
Reply With Quote