private static void promptForNames(ArrayList<String> names, String title) {
        boolean done = false; // condition for when input loop is complete
        Scanner scanner = new Scanner(System.in); // scanner for reading user input
        System.out.println(title);

        // prompt for input until an 'NEXT' is provided
        while (!done) {
            String name = scanner.next(); // potential name to be added
            done = name == null || name.equals("NEXT");
            // if not done add a name and present the new count
            if(!done) {
                names.add(name);
                System.out.println("Number of names so far: " + names.size());
            }
        }
    }