Stream API

Filtering the Collection

private Employee emp = list.stream().filter(t -> t.getId().equals(id)).findFirst().get();

Author: Mahesh

Technical Lead with 10 plus years of experience in developing web applications using Java/J2EE and web technologies. Strong in design and integration problem solving skills. Ability to learn, unlearn and relearn with strong written and verbal communications.