title: Some issue with bufferedReader
body: <p>I have a java function as follows:</p>
  
  <pre><code> public HashMap&lt;String, ArrayList&lt;Double&gt;&gt; embedWords(BufferedReader buffR1 {              
     ArrayList&lt;String &gt; arrayList = new ArrayList&lt;String&gt;();
     arrayList = getWords(buffR1);
     System.out.println("Word size:"+ arrayList.size());
  
         ArrayList&lt;ArrayList&lt;Double&gt;&gt; arrList = getWordFeature(buffR1);
     System.out.println("Size of arrList:embedWords:"+arrList.size());
       }
  </code></pre>
  
  <p>Here , the problem is , the both of the function <code> getWords</code>  and <code> getWordFeatures</code> can't give the size value. When i comment  function <code>getWords</code> the function <code>getWordFeature</code> returns non-zero value .But when uncommented , the output is as follows:</p>
  
  <pre><code>Word size:15055
  Size of arrList:embedWords: 0
  </code></pre>