title: How exactly should I structure this set method?
body: <p>I'm making an Airplane seat reserve program, and I'm working on two of the classes: Passenger and Seat. I want to have the Seat hold a Passenger object and vice versa because in the program I want to be able to print a list of seats with their passenger or, if there is no passenger, OPEN, as well as a list of passengers with their corresponding seat.</p>
  
  <p>When I insert a passenger into a Seat, should I also insert the seat into the Passenger in the same insertPassenger method or should I simply call both methods separately, following the idea that a set method should only do one thing? Also, is this Passenger-has-a-Seat and Seat-has-a-Passenger mindset appropriate for my needs or is there a better, more efficient way with less coupling?</p>
  
  <pre><code>public class Seat {
      private Passenger passenger;
      //more fields and constructor etc.
      public void insertPassenger(Passenger passenger) {
          this.passenger = passenger;
          passenger.setSeat(this); //is this line good or terrible?
      }
  }
  
  public class Passenger {
      //String names and stuff
      private Seat seat;
      //Seat is left uninitialized in constructor, is this a good idea?
      public Passenger(String firstName, String lastName) {
          this.firstName = firstName;
          this.lastName = lastName;
      }
      public void setSeat(Seat seat) {
          this.seat = seat;
      }
  }
  </code></pre>