public static void main(String[] varArgs) {

        int rows;
        String option;
        Pset2Mario m = new Pset2Mario();

        do {
            Console c = System.console();
            out.print("How many rows high would you like the pyramid to be? (The number must be between 0 and 23, inclusive.) ");
            rows = Integer.parseInt(System.console().readLine());
        } while (rows < 0 || rows > 23);


        do {
            Console c = System.console();
            out.print("Press 'c' to print the pyramid on the console, or 'f' to send it to a text file.");
            option = System.console().readLine();
        } while ((!option.equals("c")) && (!option.equals("f")));

        m.pyramidBuilder(rows);

        if (option.equals("c")) {
            out.print(m.pyramid);
        } else {
            try {
                writeFile(m.pyramid);
            } catch (IOException e) {
                out.print("Caught IOException" + e.getMessage());
            }
        }
    }