void (String[] args) { Collection<String> strings = new ArrayList<>(); I i = (s) -> { System.out.println(<selection>s.hashCode()</selection>); }; for (String s : strings) { System.out.println(s.hashCode()); } }