title: Check if an character is an operator
body: <p>I want to check if a character is an operator like : %,/,*,+,- </p>
  
  <p>This is the code to get input from the user in the main function:</p>
  
  <pre><code> Scanner input = new Scanner(System.in);
  
          System.out.println("Operator (S is stoppen)");
  
          String operator = input.nextLine();
          char o = operator.charAt(0);
  </code></pre>
  
  <p>So the input is stored in the variabele 'o'</p>
  
  <p>So now I tried to make a new function to check if the character is one of these functions: %,/,*,+,- </p>
  
  <p>this is the function I tried to make:</p>
  
  <pre><code>static boolean isGeldigeOperator(char o) {
  
      if (o == '%' || '/' || '*' || '+' || '-'){
          return true;
      } else{
          return false;
      }
  </code></pre>
  
  <p>So if o == one of the operators return true and if not return false. </p>
  
  <p>Now the error that I'm getting is about this line:</p>
  
  <pre><code> if (o == '%' || '/' || '*' || '+' || '-'){
  </code></pre>
  
  <p>Its this error: Operator || cannot be applied to 'boolean', 'char'</p>
  
  <p>Does anyone know what I'm doing wrong?</p>