Commit 5766c901 authored by LoomyGames's avatar LoomyGames

Added boarding pass

parent 2b5043d2
...@@ -50,6 +50,7 @@ public class Yeyey1 { ...@@ -50,6 +50,7 @@ public class Yeyey1 {
if(bookAgain == 0) if(bookAgain == 0)
{ {
System.out.println("Have a good day!"); System.out.println("Have a good day!");
ShowBoardingPass();
} }
} }
...@@ -160,5 +161,16 @@ public class Yeyey1 { ...@@ -160,5 +161,16 @@ public class Yeyey1 {
ShowSeats(); ShowSeats();
} }
public static void ShowBoardingPass()
{
System.out.println(" -------------BOARDING PASS-----------------");
System.out.println(" Name: " + personName + " ------------------");
System.out.println(" Current City: " + currentCity + " ---------");
System.out.println(" Destination: " + destination + " ----------");
System.out.println(" Seat: " + seat[mainSeatNumber] + " --------");
System.out.println(" Flight: " + planeName[0] + " -----------------");
System.out.println(" -------------------------------------------");
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment