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
4cdacb64
Commit
4cdacb64
authored
Nov 04, 2019
by
charlie.hamer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Airline Reservation
parent
ae726aa4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
airline.java
AirlineReservation/src/airline.java
+5
-5
No files found.
AirlineReservation/src/airline.java
View file @
4cdacb64
...
...
@@ -40,7 +40,7 @@ public class airline {
public
static
void
Class
(){
int
fclass
;
//variable to determine class
String
fclass
;
//variable to determine class
System
.
out
.
print
(
"Choose a flight class-"
...
...
@@ -48,14 +48,14 @@ public class airline {
+
"\nPlease type 2 for Business"
+
"\nPlease type 3 for Economy \n"
);
while
(
true
){
switch
(
fclass
=
input
.
next
Int
())
{
case
1
:
//if user chooses first class
switch
(
fclass
=
input
.
next
())
{
case
"1"
:
//if user chooses first class
first
();
break
;
case
2
:
//if user chooses business class
case
"2"
:
//if user chooses business class
business
();
break
;
case
3
:
//case if user chooses economy class
case
"3"
:
//case if user chooses economy class
economy
();
break
;
default
:
//case if user chooses an invalid option
...
...
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