com.ochafik.lang
Class Threads

java.lang.Object
  extended by com.ochafik.lang.Threads

public final class Threads
extends Object

Group of coordinated Runnable instances that can be started, interrupted and waited for together.

Once you added as many runnable tasks as needed through the add(Runnable) method, there are two ways of waiting for the tasks to finish :