title: resolve a java.util.ArrayList$SubList notSerializable Exception
body: <p>I am using SubList function on an object of type List. The problem is that I am using RMI and because the java.util.ArrayList$SubList is implemented by a non-serializable class I got the Exception described above when I try to pass the resulting object to a remote function taking as an argument a List as well.
   I've seen that I should copy the resulting List to a new LinkedList or ArrayList and pass that.</p>
  
  <p>Does anyone know a function that helps as to easily do that for this for example ?</p>
  
  <pre><code>List&lt;String&gt; list = originalList.subList(0, 10);
  </code></pre>