I have created an ArrayList
from a comma separated string. Now I want to add an extra blank space to this list, but I am getting following error:
java.lang.UnsupportedOperationException
at java.util.AbstractList.add(AbstractList.java:131)
My Code is
inputParamList=Arrays.asList(inputVariablesNames.split(","));
inputParamList.add("");