Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) throws IOException {
- list.add(new Student("Doug", 17));
- list.add(new Student("Sally", 14));
- // Start the program by welcoming the user and listing all available commands
- System.out.println("\nWelcome!\n");
- commandList();
- while(isRunning) {
- // Begin the line with a newline and a '>'
- System.out.print("\n>");
- // Read the next line and run the corresponding command
- executeCommand(userIn.nextLine());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement