How to use asynchronous communication with java. | Hacker News Reader