The homework reads:

1. The homework is to create a new NetBeans project called
MyRunnableProjectas following.

   - Create a class called MyCurrentDate that implements Runnable interface.
   - The MyCurrentDate class displays the current date and time 10 times,
   with 100 milli seconds interval - use sleep() method for this interval.
   - Create a class called MyMain, which contans main() method, in which 3
   instances of MyCurrentDate threads are being run.

Does he want each thread to show the current date 10 times, since there are
3 threads being run?  Or does he want a total of 10 times being displayed?


And secondly, if he only wants ten times being displayed overall........how
would that work with a for loop?  I currently use

 for (int i = 0; i <3; i++) {

to just display it nine times.  Would a different loop need to be used?  Or
can I modify the for loop in a way that would allow me to limit this?
Thanks in advance for the help.

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to