Question: Given a 2D array design a method to return true or false if all the points in the array are on the same line. Also,
Given a 2D array design a method to return true or false if all the points in the array are on the same line. Also, design a method to determine the most central point compared to the others. The point list is initialized with the number of x,y coordinate pairs the user wants to enter.
double points [][];
points = [length][2];
In java please.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
