Forums Register Login

error in thread class

+Pie Number of slices to send: Send


Why the above code shows error ???/
+Pie Number of slices to send: Send
You should never call a thread's "run" method; "start" will cause the new thread to be started and run.
+Pie Number of slices to send: Send
What error? Can you be specific? What I can see is that you are implementing Thread class. You should be extending Thread class. Otherwise there is nothing wrong with the code.
+Pie Number of slices to send: Send
 

Maruthi Janardhan wrote:What error? Can you be specific? What I can see is that you are implementing Thread class. You should be extending Thread class. Otherwise there is nothing wrong with the code.



Isn't this enough to cause a compile error?

Henry
+Pie Number of slices to send: Send
 

Henry Wong wrote:
Isn't this enough to cause a compile error?

Henry


True, but I thought rebeus is seeing some thing else. Was there a post on the forum to get help on a compiler error!!!
When I was younger I felt like a man trapped inside a woman’s body. Then I was born. My twin is a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 706 times.
Similar Threads
code for isAlive()
thread
Thread class
Please Help - Using an Array from another class
Doubt in synchronized thread program
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:13:32.