title: Why is the ArrayList import not working? (Java)
body: <p>The following code will not compile, apparently because "the import conflicts with a type defined in the same file." Why won't this work?!</p>
  
  <pre><code>import java.util.ArrayList;
  public class ArrayList {
  
      public static void main(String[] args) {
  
          ArrayList&lt;Integer&gt; aList = new ArrayList&lt;Integer&gt;();
  
  }
  }
  </code></pre>