import java.rmi.RemoteException; import java.util.ArrayList; public class ReservationImplementation implements Reservation { public ReservationServer() { // ... } public ArrayList getTimetable() throws RemoteException { // ... } public int getAvailableSeats(Interval interval) throws RemoteException { // ... } public boolean makeReservation(int customerId, Interval interval, int numberOfSeats) throws RemoteException { // ... } public boolean cancelReservation(int customerId, Interval interval) throws RemoteException { // ... } }