Im having a little of a hard time figuring out the specifics of a line of code that sorts a 2d array of integers.
The array that is being sorted is an array that has arrays inside that only have two numbers, I am trying to figure out if (a, b) refers to two separate 2d arrays and if (a[0] , b[0]) refers to the numbers within the 2d arrays?
Arrays.sort(sortedIntervals, (a, b) -> Integer.compare(a[0], b[0]));