public static void parse(String[] args) {
    for (int i = 0; i < args.length; i++) {
      switch (args[i]) {
        case "-neighbourhood":
          if (i + 1 < args.length) {
            i++;
            try {
              neighbourhood = Integer.parseInt(args[i]);
            } catch (NumberFormatException e) {
              Log.warn("Value '" + args[i] + "' is not a number");
            }
          }
          break;
        case "-rounds":
          if (i + 1 < args.length) {
            i++;
            try {
              rounds = Integer.parseInt(args[i]);
            } catch (NumberFormatException e) {
              Log.warn("Value '" + args[i] + "' is not a number");
            }
          }
          break;
        default:
          // Ignore all other arguments
          break;
      }
    }
  }
public static void parse(String[] args) {
    for (int i = 0; i < args.length; i++) {
      switch (args[i]) {
        case "-neighbourhood":
          if (i + 1 < args.length) {
            i++;
            try {
              neighbourhood = Integer.parseInt(args[i]);
            } catch (NumberFormatException e) {
              Log.warn("Value '" + args[i] + "' is not a number");
            }
          }
          break;
        case "-rounds":
          if (i + 1 < args.length) {
            i++;
            try {
              rounds = Integer.parseInt(args[i]);
            } catch (NumberFormatException e) {
              Log.warn("Value '" + args[i] + "' is not a number");
            }
          }
          break;
        default:
          
          break;
      }
    }
  }
public static void parse ( String [ ] args ) { for ( int i = 0 ; i < args . length ; i ++ ) { switch ( args [ i ] ) { case "-neighbourhood" : if ( i + 1 < args . length ) { i ++ ; try { neighbourhood = Integer . parseInt ( args [ i ] ) ; } catch ( NumberFormatException e ) { Log . warn ( "Value '" + args [ i ] + "' is not a number" ) ; } } break ; case "-rounds" : if ( i + 1 < args . length ) { i ++ ; try { rounds = Integer . parseInt ( args [ i ] ) ; } catch ( NumberFormatException e ) { Log . warn ( "Value '" + args [ i ] + "' is not a number" ) ; } } break ; default : // Ignore all other arguments break ; } } }
Parses the command line arguments.

@param args the command line arguments
Parses the command line arguments .