Commit 4b062ccc authored by LoomyGames's avatar LoomyGames

Almost done

parent 8d83a49c
......@@ -34,25 +34,30 @@ public class Yeyey1 {
GiveInfo();
while(bookAgain == 1)
while(true)
{
if(bookAgain == 1)
{
System.out.println("");
System.out.println("For First Class please input 1");
System.out.println("For Business Class please input 2");
System.out.println("For Economy Class please input 3");
classRead = input.nextInt();
BookSeats(classRead);
ShowBoardingPass();
System.out.println("");
System.out.println("Would you like to book another seat? 0 = no / 1 = yes");
bookAgain = input.nextInt();
}
if(bookAgain == 0)
else if(bookAgain == 0)
{
ShowBoardingPass();
System.out.println("Have a good day!");
break;
}
}
}
......@@ -61,7 +66,7 @@ public class Yeyey1 {
if(mainClass == 1)
{
System.out.println("Please select a seat from 01 to 18");
System.out.println("Please select a seat from 1 to 18");
{
OccupySeats();
}
......@@ -143,9 +148,6 @@ public class Yeyey1 {
else
{
System.out.println("Seat is already occupied");
System.out.println("Would you like to book another seat? 0 = no / 1 = yes-------");
bookAgain = input.nextInt();
ShowSeats();
}
}
......
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