c.sendMessage((i + 1) + "\n");
}
// Run the client for some time, then shut it down.
latch.await(10, TimeUnit.SECONDS);
c.stop();
}
public static void main(String[] args) throws InterruptedException {
// More clients will test robustness of the server, but output becomes
// more confusing.