I am having trouble with my application. Whenever I try to use the character 'var' it is not recognized by the IDE. I tried this thread here but it did not change my problem.
I made a method for retrieving users from a database by using a UserRepository and that is where the problem takes place:
@Override
public List<User> findAll() {
var users = (List<User>) userRepository.findAll();
// List<User> users = new ArrayList<User>(userRepository.findAll());
return users;
}
Any tips?