title: Change user input to lowercase
body: <p>I am really new to learning Java and I am trying to change the user input to lowercase (or uppercase). However it isn't work. Any suggestion? </p>
  
  <pre><code>    protected String nextMove()
  {
      System.out.println("Please enter move");
      Scanner in = new Scanner(System.in).toUpperCase();
  
      while (!in.hasNext("['a','b','c']"))
      {
       String move;
       System.out.println("That is not a valid guess");
       move = in.nextLine();
       in.close();
       return move;
   }
  return nextMove();
  }
  </code></pre>