title: Syntax error, 'for each' statements are only available if source level is 1.5 or greater
body: <p>Receiving the below error:</p>
  
  <pre><code>Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
  Syntax error, 'for each' statements are only available if source level is 1.5 or greater at Tuto.OneDimArrays.main(OneDimArrays.java:14)
  </code></pre>
  
  <p>CODE: </p>
  
  <pre><code>public class OneDimArrays {    
      public static void main(String[] args) {            
          int[] xabc = new int[5];    
          xabc[2]=20;    
          xabc[0]=50;    
          for(int temp:xabc){    
          System.out.println(temp);   
          }
      }
  }
  </code></pre>
  
  <p>Please help..</p>