I have two classes, the User class which has the User properties which has getters/setters and a contructor, and the UsersInLondon class, they both reside in the same package. I'm having problems with this bit of code, in the UsersInLondon class:-
if (distanceInMiles <= 50)
{
System.out.println("People who live in London");
User user = new User();
user.setId(id);
/.... etc I use IntelliJ, and it is not picking up the User properties in the User class, the property id is in red. I know how to instantiate a class but I've never encountered this before, the error message is: Error:(63, 38) java: cannot find symbol symbol: variable id location: class com.londonusers.UsersInLondon Any help, would be much appreciated. Thanks