title: Illegal Start of Expression Java Boolean?
body: <p>I'm trying to run a Bitwise number comparison and my code keeps coming up with an Illegal start of expression on line 30 of my code with the "if" statement.</p>
  
  <p>My code reads as so:</p>
  
  <pre><code>public class Project7 {
  
      public static void main(String[] args) {
          Scanner keyboard = new Scanner(System.in);
          double P = keyboard.nextDouble(); 
          double Q = keyboard.nextDouble();
          double R = keyboard.nextDouble();
          double S = keyboard.nextDouble();
          boolean First_Relation;
          boolean Second_Relation;
  
          if (P &gt; Q) First_Relation = true;
          if (R &lt; S) Second_Relation = true;
  
          if (First_Relation = true) &amp; (Second_Relation = true); 
          System.out.println("Given the values for p,q,r, and s the expression "
          + "(p &gt; q) &amp;&amp; !(r &lt; s) evaluates to " );
      }
  }
  </code></pre>