title: Scanner issuses in java
body: <p>This is my code</p>
  
  <pre><code>import java.util.Scanner;
  import java.util.Random;
  public class RPS {
      public static void main (String[] args){
          Scanner scan = new Scanner(System.in);
          Random rand = new Random();
          int comp=0, user=0;
          char temp = ' ';
          System.out.println("Enter Q to quit.");
          while(user!=4){
              comp = rand.nextInt(3);
              System.out.print("Enter your choice (R, P, S): ");
              temp = scan.nextChar();
              if(temp =='R' || temp =='r')
                  user=1;
              if(temp =='P' || temp =='p')
                  user=2;
              if(temp =='S' || temp =='s')
                  user=3;
              else
                  user=4;
              ...
  </code></pre>
  
  <p>I cut off the end of my code after what was important. Im getting an error on the line that says "temp = scan.nextChar();" that says symbol not found. What is my error? </p>