title: Declaring an ArrayList object as final for use in a constants file
body: <p>I am generating an ArrayList of objects. 
  Following is the code</p>
  
  <pre><code>ArrayList someArrayList = new ArrayList();
  
  Public ArrayList getLotOfData()
  {
  ArrayList someData = new ArrayList();
  return someData; 
  }
  
  
  someArrayList = eDAO.getLotOfData();
  </code></pre>
  
  <p>Once I have this ArrayList object "someArrayList", I would like to declare it public and final and store it in a Constants file so that it can be accessed globally. 
  Is there a way I can do that? If I declare an Arraylist object public and final, then I would not be able to reassign any values to it. 
  I tried the following</p>
  
  <pre><code>public final ArrayList anotherArrayList = new ArrayList();
  
  anotherArrayList.addAll(someArrayList);
  </code></pre>
  
  <p>I had hoped to store this "anotherArrayList" as a global ArrayList object and use it, but this returns a nullpointer exception.   I want to use it just like a String constant  "ConstantsFile.anotherArrayList". Any ideas???</p>