I am generating a list from the Registery using the code below.
List<String> options = Arrays.asList(Advapi32Util.registryGetStringArray(HKEY_LOCAL_MACHINE, key, value)
Later on in the code I want to add to this list However the add method is not working.
The following code below give me an java.lang.unsupportedOperationException.
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)
Any ideas.