Consider the following almost compilable Java 8 code:
public static void main(String[] args) {
LinkedList users = null;
users.a
look at the code
User user = users.stream().filter((user) -> user.getId() == 1).findAny().get();
The variable name is user and the variable inside the lambda is also user
try changing it to be something like this
User user = users.stream().filter((otherUser) -> otherUser.getId() == 1).findAny().get();