package Algo;import java.util.Scanner;import java.io.FileNotFoundException;import java.io.FileInputStream;import java.util.Arrays;public class SortCheck { public static void main(String args) { if ((args.length!=2) || (!args0.equals(“-i”))) { System.out.println(“Usage: java SortCheck -i “); System.exit(1); } String filePath = args1; Scanner sc = null; try { sc = new Scanner(new FileInputStream(filePath)); } catch (FileNotFoundException e) { System.out.println(“File “+filePath+” not found or cannot be opened”); System.exit(1); } int size = sc.nextInt(); float array = new floatsize; for (int i=0;i