public class Solution { public static void main(String[] args) { double[][] set1 = {{1, 1}, {2, 2}, {3, 3}, {4, 4}}; double[][] set2 = {{0, 1}, {1, 2}, {4, 5}, {5, 6}}; double[][] set3 = {{0, 1}, {1, 2}, {4, 5}, {4.5, 4}}; System.out.println(isOnOneL…