Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Airline Reservation Version 2
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
daniel.tang
Airline Reservation Version 2
Commits
ffe59a00
Commit
ffe59a00
authored
Dec 05, 2019
by
daniel.tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update outdated.java
parent
22a9eba8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
28 deletions
+5
-28
Airline_Program_V2.java
Airline_Program_V2.java
+5
-28
No files found.
outdated
.java
→
Airline_Program_V2
.java
View file @
ffe59a00
...
@@ -91,7 +91,6 @@ public class Airline_Program_v2 {
...
@@ -91,7 +91,6 @@ public class Airline_Program_v2 {
out
.
println
(
"Please enter > \n"
out
.
println
(
"Please enter > \n"
+
" \n"
+
" \n"
+
"O - Start Documentation \n"
+
"O - Start Documentation \n"
+
"K - Print Boarding Passs \n"
+
"OR type 'Exit' to exit the application. \n"
+
"OR type 'Exit' to exit the application. \n"
+
" \n"
+
" \n"
+
""
);
+
""
);
...
@@ -107,11 +106,6 @@ public class Airline_Program_v2 {
...
@@ -107,11 +106,6 @@ public class Airline_Program_v2 {
documentSwitch
();
documentSwitch
();
break
;
break
;
case
"k"
:
case
"K"
:
boardingSwitch
();
break
;
case
"m"
:
case
"m"
:
case
"M"
:
case
"M"
:
//managementRole();
//managementRole();
...
@@ -166,11 +160,11 @@ public class Airline_Program_v2 {
...
@@ -166,11 +160,11 @@ public class Airline_Program_v2 {
+
"[01] [10] | [19] [28] [37] | [46] [55] [64] [73] [82]\n"
+
"[01] [10] | [19] [28] [37] | [46] [55] [64] [73] [82]\n"
+
"[02] [11] | [20] [29] [38] | [47] [56] [65] [74] [83]\n"
+
"[02] [11] | [20] [29] [38] | [47] [56] [65] [74] [83]\n"
+
"[03] [12] | [21] [30] [39] | [48] [57] [66] [75] [84]\n"
+
"[03] [12] | [21] [30] [39] | [48] [57] [66] [75] [84]\n"
+
"----------
------------------
-------------------------\n"
+
"----------
+----------------+
-------------------------\n"
+
"[04] [13] | [22] [31] [40] | [49] [58] [67] [76] [85]\n"
+
"[04] [13] | [22] [31] [40] | [49] [58] [67] [76] [85]\n"
+
"[05] [14] | [23] [32] [41] | [50] [59] [68] [77] [86]\n"
+
"[05] [14] | [23] [32] [41] | [50] [59] [68] [77] [86]\n"
+
"[06] [15] | [24] [32] [42] | [51] [60] [69] [78] [87]\n"
+
"[06] [15] | [24] [32] [42] | [51] [60] [69] [78] [87]\n"
+
"----------
------------------
-------------------------\n"
+
"----------
+----------------+
-------------------------\n"
+
"[07] [16] | [25] [33] [44] | [52] [61] [70] [79] [88]\n"
+
"[07] [16] | [25] [33] [44] | [52] [61] [70] [79] [88]\n"
+
"[08] [17] | [26] [34] [45] | [53] [62] [71] [80] [89]\n"
+
"[08] [17] | [26] [34] [45] | [53] [62] [71] [80] [89]\n"
+
"[09] [18] | [27] [35] [46] | [54] [63] [72] [81] [90]\n"
);
+
"[09] [18] | [27] [35] [46] | [54] [63] [72] [81] [90]\n"
);
...
@@ -230,7 +224,7 @@ public class Airline_Program_v2 {
...
@@ -230,7 +224,7 @@ public class Airline_Program_v2 {
out
.
println
();
out
.
println
();
out
.
println
(
"--------------------------------------------------------"
);
out
.
println
(
"--------------------------------------------------------"
);
out
.
println
(
"
Detail Check
:"
);
out
.
println
(
"
Boarding Pass
:"
);
out
.
println
(
"--------------------------------------------------------"
);
out
.
println
(
"--------------------------------------------------------"
);
out
.
println
();
out
.
println
();
...
@@ -248,7 +242,7 @@ public class Airline_Program_v2 {
...
@@ -248,7 +242,7 @@ public class Airline_Program_v2 {
out
.
println
(
"--------------------------------"
);
out
.
println
(
"--------------------------------"
);
}
}
}
// End documentSwitch > Line 1
30
}
// End documentSwitch > Line 1
24
public
static
void
display
(
String
board
[][])
{
// Displays board
public
static
void
display
(
String
board
[][])
{
// Displays board
...
@@ -284,23 +278,6 @@ public class Airline_Program_v2 {
...
@@ -284,23 +278,6 @@ public class Airline_Program_v2 {
}
// end for firstClass boolean > Line 236
}
// end for firstClass boolean > Line 236
private
static
void
boardingSwitch
()
{
out
.
println
(
"Name--|--Last--|--Ori--|--Dest--|--Seat Num--"
);
int
size
=
boardName
.
size
();
for
(
int
i
=
0
;
i
<
size
;
i
++)
{
out
.
println
(
boardName
.
get
(
i
)
+
"\t"
+
boardLast
.
get
(
i
)
+
"\t"
+
boardOrigins
.
get
(
i
)
+
"\t"
+
boardDestination
.
get
(
i
)
+
"\t"
+
boardseatBook
.
get
(
i
));
out
.
println
(
"--------------------------------"
);
}
}
private
static
void
managementRole
()
{
private
static
void
managementRole
()
{
out
.
println
(
"Name--|--Last--|--Ori--|--Dest--|--Seat Num--"
);
out
.
println
(
"Name--|--Last--|--Ori--|--Dest--|--Seat Num--"
);
...
@@ -318,7 +295,7 @@ public class Airline_Program_v2 {
...
@@ -318,7 +295,7 @@ public class Airline_Program_v2 {
}
}
}
// end managementRoles
}
// end managementRoles
> Line 281
// Copy & Paste & other stuff NOT RELEVENT
// Copy & Paste & other stuff NOT RELEVENT
...
...
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