title: Java cannot find symbol error by setting defaults
body: <p>Trying to enter a while loop that allows users to enter numbers and operators. I am trying to set any default value like <code>char operator = x;</code> to get into the loop itself but I keep getting cannot find symbol error. What am I doing wrong?</p>
  
  <pre><code>  BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
    String inputValues;
  
    // Sets the variable defaults
    double accumulator = 0;
    double newVal;
    char operator = x;             // Here is where I get my error
  
    // Create the loop here
    while (operator != 't' &amp;&amp; operator != 'T') {
  
       // Takes user input values here
       inputValues = input.readLine();
       String[] inputValue = inputValues.split("\\s+");
  
       // Sets accumulator number and operator value
       accumulator = Double.parseDouble(inputValue[0]);
       operator = inputValue[1].charAt(0);
  </code></pre>