title: My Java Code does't compile. Where could the error be? And what is the output?
body: <p>I am tryin to run this Java code, but Eclipse can't compile it. What is the error and what should the output be?</p>
  
  <pre><code>int[] a = {1, 2, 6, 5, 8, 3, 4, 7};
  
  for (int i = 0; i &lt; a.length; i++) 
  {
   if (a[i] &gt; 5) 
   {
     System.out.println(a[i]);
   }
  }
  </code></pre>