mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-08 10:15:51 +08:00
@ -29,9 +29,9 @@ public class LinearSearchThread {
|
||||
t1.join();
|
||||
t2.join();
|
||||
t3.join();
|
||||
} catch (InterruptedException e) {}
|
||||
boolean found =
|
||||
t.getResult() || t1.getResult() || t2.getResult() || t3.getResult();
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
boolean found = t.getResult() || t1.getResult() || t2.getResult() || t3.getResult();
|
||||
System.out.println("Found = " + found);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user