|
|
|
|
|
by Thorrez
629 days ago
|
|
This will wait up to 1 second before showing a result when a result comes in. I'm pretty sure Chris doesn't want any waiting like that. This will also print some results multiple times. I think Chris wants to print each result once. |
|
You can simply comment out the println and just pick the first results[0]. Again, the repeated println for all results was only added for demonstrative clarity.
Frankly, the above satisfies all primary goals. The rest is just nitpicking - without a formal specification of the problem one can argue all day.