publicstaticvoidmain(String[]args){CommandLineValuesvalues=newCommandLineValues(args);CmdLineParserparser=newCmdLineParser(values);try{parser.parseArgument(args);}catch(CmdLineExceptione){System.exit(1);}// Now you can use the command line valuesList<ArrayList<ArrayList<Integer>>>matrices=read(values.getSource());ArrayList<ArrayList<Integer>>A=matrices.get(0);ArrayList<ArrayList<Integer>>B=matrices.get(1);int[][]C=ijkAlgorithm(A,B);printMatrix(C);}

Usage Examples

If you do not specify the required parameters, you get a quite good error message: