[Solved] Having trouble implementing a nested class comparator
You should provide inner class instance into Arrays.sort to compare points from view of parent class instance. To do it you should not create new instance in main() function, but get it from Point instance. So, in main function you should use something like this: Point pivot; … // set up pivot point here Arrays.sort(myPoints, … Read more