Java Unable to add a new list item : <p>I am generating a list from the Registery using the code below.</p>

<pre><code>  List&lt;String&gt; options = Arrays.asList(Advapi32Util.registryGetStringArray(HKEY_LOCAL_MACHINE, key, value)
</code></pre>

<p>Later on in the code I want to add to this list However the add method is not working.</p>

<p>The following code below give me an java.lang.unsupportedOperationException.</p>

<pre><code>  options.add("Test");


  Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException
    at java.util.AbstractList.add(AbstractList.java:148)
    at java.util.AbstractList.add(AbstractList.java:108)
</code></pre>

<p>Any ideas.</p>
