Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In modern Java(8) it is now

    asList("hat", "dog", "cat").forEach(System.out::println)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: