title: Java: Cannot find symbol error on Map, HashMap
body: <p>I'm trying to run this code:</p>
  
  <pre><code>import java.util.*;
  
  public class ScanReg {
    public Map&lt;Integer, ArrayList&lt;Long&gt;&gt; scanMap = new HashMap&lt;Integer, ArrayList&lt;Long&gt;&gt;();
  }
  </code></pre>
  
  <p>within this class:</p>
  
  <pre><code>import java.util.*;
  
  public class NxtStart {
    ScanReg sr = new ScanReg();
  }
  </code></pre>
  
  <p>This keeps giving me the following error: </p>
  
  <pre><code>.\ScanReg.java:6: error: cannot find symbol
          public Map&lt;Integer, ArrayList&lt;Long&gt;&gt; scanMap = new HashMap&lt;Integer, Arra
  yList&lt;Long&gt;&gt;();
                 ^
    symbol:   class Map
    location: class ScanReg
  .\ScanReg.java:6: error: cannot find symbol
          public Map&lt;Integer, ArrayList&lt;Long&gt;&gt; scanMap = new HashMap&lt;Integer, Arra
  yList&lt;Long&gt;&gt;();
                                                             ^
    symbol:   class HashMap
    location: class ScanReg
  2 errors
  </code></pre>
  
  <p>Can somebody please tell me why? </p>