Why does this code
public class SponsoredComparator implements Comparator { public boolean equals(SRE arg0, SRE arg1){ return arg0.g
My solution: When I want to sort numbers and an array element is null, I put 0 then the error disappears. It is needed to take care that the sizes of each row in the two-dimensional arrays are the same.