-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Java Reservation.seats is now List<Seat> instead of Seat[]
- Loading branch information
Petter Remen
committed
May 16, 2013
1 parent
7b8417a
commit d9eb825
Showing
2 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import java.util.List; | ||
|
||
public class Reservation { | ||
public final String trainId; | ||
public final String bookingId; | ||
public final Seat[] seats; | ||
public final List<Seat> seats; | ||
|
||
public Reservation(String trainId, Seat[] seats, String bookingId) { | ||
public Reservation(String trainId, List<Seat> seats, String bookingId) { | ||
this.trainId = trainId; | ||
this.bookingId = bookingId; | ||
this.seats = seats; | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters