title: Determine if char value is in range of chars
body: <p>The objective is this:</p>
  
  <blockquote>
    <p>Row 1: A-L<br>
    Row 2: M-Z</p>
    
    <p>Write a program that takes as input a student's full name (first last) and prints out the row the student should be in. The first nor last name will contain any spaces. There will be only one space in the input and that will be between the first and last name.</p>
  </blockquote>
  
  <p>I am not sure how to make it read character A - L and M- Z. </p>
  
  <pre><code>import java.util.Scanner;
  
  public class SeatingChart {
      public static void main(String[] args) {
          Scanner in = new Scanner(System.in);
  
          char row1 = 'A' ,'L';
          char row2 = 'M' ,'Z';
  
          System.out.println(" Enter the student's last name: ");
          String name = in.next();
  
          char initial = name.charAt(0);
  
          if (initial = row1) {
              System.out.println(" This student can sit anywhere in row 1. ");
          }
  
          if (initial = row2) {
              System.out.println(" This student can sit anywhere in row 2. ");
          }
  
          in.close();
      }
  }
  </code></pre>
  
  <p>This is what I have so far, but The code is incorrect for declaring characters A - L and characters M - Z. How would I fix this to make it read these list of characters?</p>