title: Create Custom Collection in Java
body: <p>I'm not quite sure how to do this, but I find myself using a list of lists quite often in this particular project. I think I'd like to refactor this into it's own collection. Basically, it's a list of users and their attributes. The object I'm using is a <code>List&lt;List&lt;String&gt;&gt;</code>. I think I'd like to make a drop-in replacement that maybe extends <code>ArrayList</code> and call it <code>UserList</code> or something similar. </p>
  
  <p>Note: my only real goal is to keep from typing <code>List&lt;List&lt;String&gt;&gt;</code> everywhere. </p>
  
  <p>What would be the best approach to take with this? </p>
  
  <p>EDIT: Thanks. I guess I knew something could be better. Just couldn't quite put my finger on it. I had initially avoided creating a <code>User</code> class because I wasn't sure how I would easily be able to iterate over the attributes. </p>