title: User input upperCase and lowerCase - Java
body: <p>I am attempting to take an input of A or B in either Uppercase or LowerCase to follow on through the if statement. I can't figure out how to do this. At the moment, it's only taking in UpperCase A or B. Looked around the forum and the class notes, came up with nothing. Any help would be appriciated!
  I tried using toUpperCase() but don't think i am putting it in the right place. It keeps giving me an error</p>
  
  <pre><code>import java.util.Scanner;
  
  public class printNumber{
      public static void main (String[] args){
          Scanner input = new Scanner(System.in);
          System.out.println("Please select an option between A or B: ");
          char user = input.next().charAt(0);
  
          System.out.println("You have selected " +user+ " : ");    
          if (user == 'A'){
              for(int n=1; n&lt;=100; n++){
                  if((n%2)==0)
                      System.out.println(n);
              }
          }
          else if (user =='B'){
              for (int x =1; x&lt;=100; x=x+2){
                  System.out.println(x);
              }
          }
          else
              System.out.println("Error, please try again!");
      }
  }
  </code></pre>