public class Golstart { public static void main(String[] args) { if (args.length != 3) /*Überprüfung der Eingabe*/ { System.out.println("Error: Wrong Number of Arguments"); System.out.println("********************************"); System.out.println("Usage: progname dim k number"); System.out.println("dim -> Dimension of the Matrix"); System.out.println("k -> How many cells are allowed to live from the beginning"); System.out.println("number -> How many Generations are generated"); } else { int n = Integer.parseInt(args[0]); int k = Integer.parseInt(args[1]); int generations = Integer.parseInt(args[2]); Gol newgame = new Gol(n, n); newgame.setLife(k); newgame.playLifecycles(generations); } } }