private void waitForAll(CountDownLatch latch){
  try {
    latch.await();
  }
 catch (  InterruptedException e) {
    e.printStackTrace();
  }
}

private void waitForAll ( CountDownLatch latch ) { try { latch . await ( ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } }
ultimately , we will need to wait for all 5 calls to be completed before the sentence can be assembled . this code waits for the last call to come back :
