`There's a employee list, first 4 characters shows employee joining year. I want to get all employees who joined in 2023. I'm using java , stream and filter method to do this.
but filter() method, filtering the records but returning duplicate value. e.g in this 3 employees who joined in 2023 but i'm getting all employees twice hence getting 6 records[Employee class](https://i.sstatic.net/BHaXuXRz.png)[project class](https://i.sstatic.net/19U4NXu3.png)[Employee list](https://i.sstatic.net/3KJmj0xl.png)[result](https://i.sstatic.net/84Dgd7TK.png)Anyone help me to get understand why duplicate records are comingafter filter() method, I should get only 3 records`