title: Freeing up Memory from an inputstream?
body: <p>I'm pretty new to Java so bear with me here...</p>
  
  <p>I'm using a Scanner to read an <code>InputStream</code> (which is = <code>Class.class.getResourceAsStream("fileName.csv")</code>)  .  When the file is being read, the memory starts around 44,000 and when it's done reading it gets up to 298,000.  The class basically reads the <code>inputStream</code> and puts the data into some <code>ArrayLists</code> so that I can quickly search through them.  The problem is.. I can't figure out how to get the memory usage to go down once the file is done being read.  I've tried setting the <code>object = null</code> and/or calling <code>System.gc()</code> {which apparently is only a suggestion} but neither work.  I'm using the <code>close()</code> method for both the <code>Scanner</code> and the <code>InputStream</code> and nothing has worked thus far.  Anyone have any ideas?  I guess it's possible I have no idea what I'm talking about and this is how it's supposed to be but I'm pretty sure I'm doing something wrong.</p>
  
  <p>Thanks in advance.</p>