title: how to read math symbols
body: <p>I need to write a program in which a user inputs the character of a math operation, for example; + or - . </p>
  
  <p>It will be used on 2 other numbers and finally show the result.</p>
  
  <p>My char is OP and i tried using</p>
  
  <pre><code>    import java.util.Scanner;
     float innum;
  System.out.println("Please input 2 Numbers");
  for(int i=0;i&lt;1;i++){
      innum=in.nextFloat();
  }
  System.out.println("please input an operation symbol");
  char OP=in.next().charAt(0);
  if ( OP=="+"){
  </code></pre>
  
  <p>but it shows an error.</p>