F
focode
dear folks i have a situation before me i have to return a value from
the run method
the code is something like this
// lot of imports...
public class something implements Runnable {
Thread newThread;
String tempmassage,newmassage;
//somewhere in the program
newThread = new Thread(this);
newThread.start();
publiv void run()
{
// some code goes here to get message which is an object of
Message in javax.wireless.meassaging api
tempmassage = message.toString();
newmassage = tempmassage.concat(tempmassage).concat(" ");
}
}
i have to get the current value of newmassage in another program
come on duds help me out
the run method
the code is something like this
// lot of imports...
public class something implements Runnable {
Thread newThread;
String tempmassage,newmassage;
//somewhere in the program
newThread = new Thread(this);
newThread.start();
publiv void run()
{
// some code goes here to get message which is an object of
Message in javax.wireless.meassaging api
tempmassage = message.toString();
newmassage = tempmassage.concat(tempmassage).concat(" ");
}
}
i have to get the current value of newmassage in another program
come on duds help me out