@Override
 public void run() {
   Util.writeAndSleep(name, messages, 1000, 2000);
   latch.countDown();
 }
Ejemplo n.º 2
0
 /**
  * Writes the prefix and strings in sArr and sleeps between prints
  *
  * @param prefix
  * @param sArr
  * @param fix
  * @param rand
  */
 public static void writeAndSleep(String[] sArr, int fix, int rand) {
   writeAndSleep("", sArr, fix, rand);
 }