-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGreenTicketingSystem.java
More file actions
41 lines (34 loc) · 1.19 KB
/
GreenTicketingSystem.java
File metadata and controls
41 lines (34 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* @file GreenTicketingSystem.java
*
* @author Malia Cherry
*
* @date Nov. 2022
**/
import java.util.Scanner;
/**
* The GreenTicketingSystem class contains the main method to run the program.
*/
public class GreenTicketingSystem {
/**
* The main method creates a new Flight object and calls the mainMenu method.
*
* @param args the command line arguments
*/
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String repeat = "";
Flight flight = new Flight();
System.out.println("\nWelcome to Green Company's Ticketing System!");
System.out.println("********************************************");
do {
flight.mainMenu();
System.out.print("\n\t Main Menu? (Y/N): ");
repeat = input.nextLine();
} while (repeat.equalsIgnoreCase("Y"));
input.close();
System.out.println("\n*************************************************************");
System.out.println("Thank you for using the Green Company Ticket Purchase System.");
System.out.println("*************************************************************");
}
}