Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** Main method
- *
- * @param args args[0] should be the name of the IManager class and args[1] the name of a file containing the list of players or teams, one per line
- *
- * @throws FileNotFoundException thrown if the list file isn't found
- */
- public static void main(String[] args) throws FileNotFoundException {
- if (args.length!=2) {
- System.out.println("Usage: CompetitionManager <IManager class name> <list file> ");
- System.exit(0);
- }
- IManager manager = IManagerFactory.getManager(args[0]);
- if (manager==null) {
- System.out.println("Can't find IManager class name: " + args[0]);
- System.exit(0);
- }
- ArrayList<String> competitors = readPlayers(args[1]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement