Using closures in Java | Hacker News Reader