I am using Arrays.asList and in returned list I am adding data by list.add and got the below error.
Exception in thread "main" java.lang.UnsupportedOperationException at java.util.AbstractList.add(Unknown Source) 5 at java.util.AbstractList.add(Unknown Source) at com.util.AsListDemo.main(AsListDemo.java:13)
Replied on May 16, 2013
List obtained by Arrays.asList is of fixed length. We cannot add element by add method.
We are a group of software developers. We enjoy learning and sharing technologies. To improve the site's content, your valuable suggestions are most welcome. Thanks
Email : concretepage@gmail.com