I have the following method:
public boolean isMatch(List<T> sources, String captured) {
boolean isMatch = false;
return isMatch;
}
I need to start a new thread inside it like below:
Runnable r = new Runnable() {
public void run() {
VERIFY();
}
};
Thread s = new Thread(r);
s.start();
The thread is supposed to perform some operations. When it finishes, I need to assign the return boolean value to the isMatch
variable. How do I do this?