Class Test implements Runnable
{
public void one(){
{
System.out.println("Thread start");
Thread tt = new Thread(this);
tt.start();
}
}
--------------------------------------------
I want to change the above code to this:
Class Test implements Runnable
{
public void one(){
{
System.out.println("Thread start");
MyThread tt = new MyThread(this);
tt.start();
}
}
the MyThread isn't the instace of Thread!! ,but it has the start method!
class MyThread
{
MyThread(Runnable _runnable)
{
}
public void start()
{
}
}
-----------------------------------------
how to do it? pleases help me!!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966225#3966225
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966225
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user