title: How to manage array/arraylist of queues/LinkedLists?
body: <p>I realize that Queue is an interface. My problem is this. I have a Queue initialized as a LinkedList for each day of a month (31) and I need to arrange them. I am having issues understanding issues with generics. My first idea is to either make an Array of Queues (java doesn't seem to like this). Or should I just make an ArrayList of type Queue and make the initial size 32?</p>
  
  <p>If I do that, how would I reference a specific Queue to add something to it? Like this?:</p>
  
  <p>For this I'll say I'm trying to add someone to the list for the 17th day.</p>
  
  <pre><code>    ArrayList&lt;Queue&lt;Passenger&gt;&gt; lists = new ArrayList&lt;Queue&lt;Passenger&gt;&gt;(32);
      Passenger person = new Passenger(first, last);
      (lists.get(17)).add(person);
  </code></pre>
  
  <p>I feel like this would give me a null pointer exception? Perhaps not. Any input/example code is much appreciated.</p>