title: Hashmaps sell plane tickets java
body: <p>I'm doing a project for university of an app that sells flight tickets.
  in the part of offering the plane seats available,I'm making them with hashmaps, putting the passenger name, and the row &amp; seat as the key.
  I don´t know how to use the scanner to ask the client to write down the row and seat he wants, and to mark the seat as occupied. Shall I create a class called seat? if you have some idea I would be very thankful.</p>
  
  <pre><code>public AsientosConNombre(Integer row, String seat) {
          super(row, seat);
  } 
  
  public static void main(String[] args) {
  
      String nombrePasajero = Scanner.getString("Enter your name: ");
      Seat1 asientopasajero= new Seat1(AsientosConNombre);
  
      //creo el hashmap
      HashMap&lt;Seat1, String&gt; Asientos = new HashMap&lt;Seat1, String&gt;();
      //llenamos el hashmap con la informacion ingresada por el pasajero.
  
      Asientos.put(asientopasajero, nombrePasajero );
  
      //esto deberia devolver la app clientes cuando el usuario indica su nombre para saber su vuelo.
      // (ademas del horario y fecha del vuelo)
      System.out.println("Your information: "+ Asientos);
  }
  </code></pre>
  
  <p>and the other class I made is:</p>
  
  <pre><code>public class Seat1  {
      Integer row = Scanner.getInt("Enter your row: ");
      String seat = Scanner.getString("Enter your seat: ");
      public Seat1(Integer row, String seat) {
          this.row = row;
          this.seat = seat;
      }
      public boolean full(boolean occupied){
          return occupied;
      }
  }
  </code></pre>