Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Airline Reservation
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
charlie.hamer
Airline Reservation
Commits
fd747a5a
Commit
fd747a5a
authored
Nov 04, 2019
by
charlie.hamer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Final 2
parent
4cdacb64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
airline.java
AirlineReservation/src/airline.java
+2
-1
No files found.
AirlineReservation/src/airline.java
View file @
fd747a5a
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment