Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
Lab7
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
9731087
Lab7
Commits
b1777934
Commit
b1777934
authored
Apr 28, 2019
by
9731087
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
cd019974
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
SystemManagement.java
src/SystemManagement.java
+14
-0
Ticket.java
src/Ticket.java
+31
-0
No files found.
src/SystemManagement.java
View file @
b1777934
import
java.util.ArrayList
;
public
class
SystemManagement
{
private
ArrayList
<
Flight
>
flights
;
public
SystemManagement
()
{
}
public
void
addFlight
(
Flight
flight
)
{
this
.
flights
.
add
(
flight
);
}
public
void
removeFlight
(
Flight
flight
)
{
this
.
flights
.
remove
(
flight
);
}
}
src/Ticket.java
0 → 100644
View file @
b1777934
public
class
Ticket
{
private
int
SeatNo
;
private
int
flightNo
;
private
int
baggageWeight
;
private
Boolean
foodStatus
;
public
Ticket
(
int
seatNo
,
int
flightNo
,
int
baggageWeight
,
Boolean
foodStatus
){
this
.
SeatNo
=
seatNo
;
this
.
flightNo
=
flightNo
;
this
.
baggageWeight
=
baggageWeight
;
this
.
foodStatus
=
foodStatus
;
}
public
Boolean
getFoodStatus
()
{
return
foodStatus
;
}
public
int
getBaggageWeight
()
{
return
baggageWeight
;
}
public
int
getFlightNo
()
{
return
flightNo
;
}
public
int
getSeatNo
()
{
return
SeatNo
;
}
}
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