title: Airline Program
body: <p>I am trying to create a program for an assignment in Java and are looking for a push in the right direction. I am currently taking the class online so asking a teacher for help is not an option for me. </p>
  
  <p>I am trying to create a simple java program that allows a user to enter their first name and last name, and their requested seat number. If the seat is taken, the program is supposed to find the nearest available seat. So far I have succeeded at getting all the input from the user (albeit in a roundabout way) and creating and printing an array. </p>
  
  <p><strong>Question</strong></p>
  
  <p>Can I store <code>boolean</code> values in an array? I just want to store false if the seat is taken and then have and if else statement test for true or false, and store a false if the value returned is true(very confusing but thats my train of thought) is there an easier way to go about this? Also how would I also store the persons first and last name with that boolean value? Do I have to create a seperate array? I have attached my code so far that succeeds in getting the user info and printing out an array.</p>
  
  <pre><code>//Import scanner and arrays
      package airlinereservations;
      import java.util.Scanner;
      import java.util.Arrays;
      public class AirlineReservations {
  
  
      public static void main(String[] args) {
      //Print the header
      System.out.println("___________________________________");
      System.out.println("|WELCOME TO FLY BY NIGHT AIRLINES!|");
      System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
  
      // Promt user for first and last name
      System.out.println("Please enter your first name:");
  
      Scanner scan= new Scanner(System.in);
  
      String first = scan.nextLine();
  
      System.out.println("Please enter your last name:");
  
      String last = scan.nextLine();
      //Greet the user
      System.out.println("Hello! " + first + " "+ last);
      //Get the requested seat
      System.out.println("Please enter your requested seat row number 1-9:");
  
      int rowz = scan.nextInt();
  
      System.out.println("Please enter your requested seat column number 1-4:");
  
      int colz = scan.nextInt();
      //Tell the user if the seat is already taken
      if(int rowz == rowz, System.out.println("This seat is already taken!"));
          else(return true);
  
       //Print out the array
      int[][] Seating= new int[9][4];
  
           for(int row=0; row&lt;Seating.length; ++row){
          for(int col=0; col&lt;Seating[row].length; ++col){
              Seating[row][col] = (row + col) % 9 + 1; 
  
  
  
          for(int ro=0; ro&lt;Seating.length; ++ro);
               }
          System.out.println();
          for(int col=0; col&lt;Seating [row].length; ++col) 
              System.out.print(Seating[row][col]);
  
  
          }
          System.out.println();
  
  
  
     }
     }
  </code></pre>