Commit fd747a5a authored by charlie.hamer's avatar charlie.hamer

Final 2

parent 4cdacb64
...@@ -81,6 +81,7 @@ public class airline { ...@@ -81,6 +81,7 @@ public class airline {
} }
if(available == true) { //if seats are available if(available == true) { //if seats are available
System.out.println("Would you like to choose a seat?(y/n)"); System.out.println("Would you like to choose a seat?(y/n)");
while(true) {
String chooseseat = input.next(); String chooseseat = input.next();
switch(chooseseat) { switch(chooseseat) {
case "n": case "n":
...@@ -92,7 +93,7 @@ public class airline { ...@@ -92,7 +93,7 @@ public class airline {
return; return;
default: default:
System.out.println("Please pick y or n");//making sure they make a choice System.out.println("Please pick y or n");//making sure they make a choice
}
} }
} }
else else
......
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