Java: Cannot find symbol: variable Objects -


i generated methods hashcode() , equals(object obj) netbeans insercode. in netbeans can compile without errors, when compile on server javac:

bangserver/login.java:3: cannot find symbol symbol  : class objects location: package java.util import java.util.objects;                 ^ 

and other errors objects...

public int hashcode() {     int hash = 5;     hash = 47 * hash + objects.hashcode(this.password);     return hash; } 

what guys think should problem can't find java.util.objects ?

it looks you're compiling java verson older java 7, since java.util.objects added in java 7.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -