title: Unexpected type. Required variable, found value
body: <p>I don't understand why this code is could not be compiled:</p>
  
  <pre><code>public class Fibonacci 
  {
      static final int MAX_INDEX =10;    
      public static void main(String[] args) 
      {
          int lo = 1;
          int hi = 1;
          String mark;        
          System.out.println("1: " + lo);        
          for (int i=2;i&lt;MAX_INDEX; i++)
          { 
              if ((hi%2)=0)
              mark="*";            
                else
              mark="";
              System.out.println(i+": "+hi + mark);
              hi=lo+hi;
              lo=hi-lo;            
          }   
      }   
  }
  </code></pre>
  
  <p>In NetBeans IDE i have an error:</p>
  
  <p>Unexpected type. Required variable, found value.</p>
  
  <pre><code>if ((hi%2)=0)
  </code></pre>