Given the following code:
public class Outer { public final int n; public class Inner implements Comparable<Inner> { public int compareTo(Inner that) throws ClassCastException { if (Outer.this.n != Outer.that.n)
What can I change with my pseudo-code string so that I can compare n values ββfor two instances of the Inner class?
Trying the obvious solution ( n != that.n ) does not compile:
Outer.java:10: cannot find symbol symbol : variable n location: class Outer.Inner if (n != that.n)
source share