Code example for BrokenBarrierException

Methods: printStackTrace

0
					try { 
						barrier.await();
					} catch (InterruptedException e) {
						e.printStackTrace();
					} catch (BrokenBarrierException e) {
						e.printStackTrace();
					} 
				} 
			});			 
		} 
 
	} 
	 
	public static void main(String[] args){
		CyclicBarrierDemo demo = new CyclicBarrierDemo();
		demo.testBarrier();
	} 
}