SyntaxFix
Write A Post
Hire A Developer
Questions
for decreasing order for integer array of 2 dimension you can use
Arrays.sort(contests, (a, b) -> Integer.compare(b[0],a[0]));//decreasing order Arrays.sort(contests, (a, b) -> Integer.compare(a[0],b[0]);//decreasing order