zeePa

More by zeePa
What people are reading
Subscribers
Subscribers
[Total Subscribers 1]

paroo
:: Subscribe
Back to: Kurakani General Refresh page to view new replies
 java gurus help needed
[VIEWED 2753 TIMES]
SAVE! for ease of future access.
Posted on 05-31-09 6:45 AM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 


Create a class named RaceHorse that extends Thread.  Each RaceHorse has a
name and a run() method that displays the name 50 times.  Write an application
that instantiates 5 RaceHorse objects each with different names, executing in
their own Thread.  The last RaceHorse to finish is the loser.



 



class RaceHorse extends Thread {



private String horseName;



private static String loser = null;



private int rep = 50;



public RaceHorse(String horse)



This is the farthest i have gone and i don't know how else to approach this
...trying to get help from some tutorials but to no availl..



 



Dorje



 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 7 days
Recommended Popular Threads Controvertial Threads
TPS Re-registration case still pending ..
They are openly permitting undocumented immigrants to participate in federal elections in Arizona now.
Trasiting through Istanbul, Turkey
lost $3500 on penny stocks !!!
Is this a progressive step?
Nepalese Students Face Deportation over Pro-Palestine Protest
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters