Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1. public static void main(String[] args) throws IOException {
  2.     list.add(new Student("Doug", 17));
  3.     list.add(new Student("Sally", 14));
  4.     // Start the program by welcoming the user and listing all available commands
  5.     System.out.println("\nWelcome!\n");
  6.     commandList();
  7.     while(isRunning) {
  8.         // Begin the line with a newline and a '>'
  9.         System.out.print("\n>");
  10.         // Read the next line and run the corresponding command
  11.         executeCommand(userIn.nextLine());
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement