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
9731082
lab7
Commits
60ec98b3
Commit
60ec98b3
authored
Apr 28, 2019
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
third
parent
021f7fcc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
System.java
src/System.java
+11
-0
Ticket.java
src/Ticket.java
+28
-0
No files found.
src/System.java
View file @
60ec98b3
...
...
@@ -5,5 +5,16 @@ public class System {
private
ArrayList
<
Flight
>
flights
;
public
System
(){
}
public
void
addFlight
(
Flight
flight
){
this
.
flights
.
add
()
;
}
public
void
removeFlight
(
Flight
flight
){
this
.
flights
.
remove
(
flight
)
;
}
}
src/Ticket.java
View file @
60ec98b3
public
class
Ticket
{
private
int
seatNum
;
private
int
flightNum
;
private
int
luggageWeight
;
private
Boolean
foodStatus
;
public
Ticket
(
int
seatNum
,
int
flightNum
,
int
luggageWeight
,
boolean
foodStatus
){
this
.
seatNum
=
seatNum
;
this
.
flightNum
=
flightNum
;
this
.
luggageWeight
=
luggageWeight
;
this
.
foodStatus
=
foodStatus
;
}
public
int
getSeatNum
(){
return
seatNum
;
}
public
int
getFlightNum
(){
return
flightNum
;
}
public
int
getLuggageWeight
(){
return
luggageWeight
;
}
public
Boolean
getFoodStatus
(){
return
foodStatus
;
}
}
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