title: IntelliJ - Cannot resolve the symbol 'Arrays'
body: <ol>
  <li>My code</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/SyJbX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SyJbX.png" alt="My Code"></a></p>
  
  <ol start="2">
  <li>SDK Level</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/WUnQu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WUnQu.png" alt="SDK &amp; Level Settings"></a></p>
  
  <ol start="3">
  <li>SDK</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/itsaF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/itsaF.png" alt="SDK"></a></p>
  
  <p>I am using </p>
  
  <ol>
  <li>Windows 7 32bit OS  </li>
  <li>Java version "1.8.0_221"  </li>
  <li>IntelliJ Idea 11.0.2</li>
  </ol>
  
  <p>I am doing a basic program in Java. But I am getting a compilation error:</p>
  
  <blockquote>
    <p>Cannot resolve the symbol 'Arrays'</p>
  </blockquote>
  
  <p>My code is this:</p>
  
  <pre><code>import java.util.Arrays;
  import java.util.Collections;
  
  import java.util.List;
  
  public class EmployeesData {
  
      public static List&lt;Employee&gt; getEmployees() {
          return Arrays.asList(
                  new Employee(201, "Kumar", "MS", 20000),
                  new Employee(202, "Kiran", "Wells", 30000),
                  new Employee(201, "Kumar", "Wells", 40000), 
                  new Employee(203, "Vishal", "MS", 25000),
                  new Employee(203, "Srikanth", "MS", 45000),
                  new Employee(204, "Vimal", "Wells", 50000));
      }
  
      public static List&lt;Employee&gt; getEmployees2() {
          String a = null;
          return Collections.singletonList(
                  new Employee(201, "Kumar", "MS", 20000),
                  new Employee(202, "Kiran", "Wells", 30000),
                  new Employee(201, "Kumar", "Wells", 40000),
                  new Employee(203, "Vishal", "MS", 25000),
                  new Employee(203, "Srikanth", "MS", 45000),
                  new Employee(204, "Vimal", "Wells", 50000));
      }
  }
  </code></pre>
  
  <p>I am getting the same error for <strong>Collections</strong> class also.</p>
  
  <p>I tried in eclipse also, I am facing the same issue in Eclipse also. I tried to specify libraries also. even not solved. Might be something I have to do extra in settings.</p>