![]() |
cant use runnable
when implementing runnable i cant pass a runnable to a Thread.
Code:
|
Re: cant use runnable
the error end up getting is "cannot find symbol constructor Thread(A)".when i extend Thread it works fine.and if i leave the thread constructor empty(not passing a runnable)it compiles.
|
Re: cant use runnable
Hi.
I put it all in a java file called A.java and it works as expected? What IDE / Development environment are you using? Best regards Ewald |
| All times are GMT +5.5. The time now is 09:52. |