title: Why does my arrayList have null values?
body: <p>here are some details:: </p>
  
  <ol>
  <li>ht is my global hashtable implementation which has Key as character
  and values is a list(arrayList) implementation of type objects.</li>
  <li>I am traversing through entire hashtables and storing the keys in a character set.</li>
  <li>Then storing the list(whic is of type strings) at each key value in a local arrayList implementation named arrayList.</li>
  <li>But the problem is that local arrayList is always taking null value </li>
  </ol>
  
  <p>here is my piece of code</p>
  
  <pre><code>public void transferRecord(recordID) {
      ArrayList&lt;Records&gt;  arrayList;
      Set&lt;Character&gt; keySet = ht.keySet();
      try {
          for(Character c : keySet) {
              arrayList = ht.get(c);
              System.out.println ("Arraylist after taking input from ht"
                                       + arrayList);
              for (int i = 0; i &lt; arrayList.size(); i++) {
                  System.out.println("Just before entering equla" 
                                  + arrayList.get(i).getRecordID());
                  System.out.println("recordID to be transferred:" + recordID);
                  if ((arrayList.get(i).getRecordID()).equals(recordID)) {
                      .......
          try ends later after some operations
  </code></pre>