This is for an intro course to Java, we are just learning about svn and what not. When I wrote and executed the program on eclipse it ran fine, I wanted to double check on command prompt after committing it to svn, but it returned the below error instead.
javac -d bin/ src/a0/Cfiltering.java src/driver/CfilteringDriver.java
src/a0/Cfiltering.java:267: cannot find symbol
symbol : method compare(int,int)
location: class java.lang.Integer
return Integer.compare(ints[0] * 10 + ints[1],
^
src/a0/Cfiltering.java:333: cannot find symbol
symbol : method compare(int,int)
location: class java.lang.Integer
return Integer.compare(ints[0] * 10 + ints[1],
^
2 errors
I have no idea why this happens, the original code that caused the error is here:
Collections.sort(resultList, new Comparator<int[]>() {
public int compare(int[] ints, int[] otherInts) {
return Integer.compare(ints[0] * 10 + ints[1],
otherInts[0] * 10 + otherInts[1]);
}
});
Here are my imports:
import java.text.DecimalFormat;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.ArrayList;
import java.util.List;
import java.lang.Integer;