Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AirlineReservation
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
alexandru.radulescu
AirlineReservation
Commits
4b062ccc
Commit
4b062ccc
authored
Nov 03, 2019
by
LoomyGames
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Almost done
parent
8d83a49c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
19 deletions
+21
-19
Yeyey1.java
src/Yeyey1.java
+21
-19
No files found.
src/Yeyey1.java
View file @
4b062ccc
...
...
@@ -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
0
1 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
();
}
}
...
...
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