On Apr 24, 8:36 pm, Adam Smith <[email protected]> wrote:
> 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.
If the class implements Runnable, it is meant to be instanciated as a
thread.
>    - The MyCurrentDate class displays the current date and time 10 times,
>    with 100 milli seconds interval - use sleep() method for this interval.
Hence each thread displays 10 times the full date.
>    - Create a class called MyMain, which contans main() method, in which 3
>    instances of MyCurrentDate threads are being run.
As three threads are instanciated, you should have three times ten
times the full date, that means 30 times.

--~--~---------~--~----~------------~-------~--~----~
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