I have class Matrix and must sort the last row using comparator.My class is:
public class Matrix{
private int matrix[][];
public void sort(int n)
}
I'am trying to write like this
`Arrays.sort(matrix[n], (Integer a, Integer b) -> {
return b.compareTo(a);
});
But i have Error "Cannot infer functional interface type"
I have resolved this error: private Integer matrix[][]
fixed that error. Thnks for help