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
Post a Comment