public static void main(String[] args) { if (args.length == 0) { System.out.println(USAGE); return; } File file = new File(args[0]); if (!file.exists()) { System.out.println("Unable to locate file: " + args[0] + NEWLINE + USAGE); return; } try { AllPairsShortestPath program = new AllPairsShortestPath(file); program.solve(); program.showMenu(); } catch (Exception e) { System.out.println("Error occured"); } }