When creating a project, I specify java-7-openjdk in the JRE field. Without doing anything else, I create a class that calls Object.equals(Object o1, Object o2) added to Java7.

 public class Main { public static void main(String[] args) { boolean b = Object.equals(new World(), new World()); } } 

What I get

equals cant be resolved or is not a field

What did I miss?

    2 answers 2

    override the comparison method in the object i. in your Word method () you have to redefine ikvelz

      I apologize. Confused the Object and Objects classes.