Asked on May 26, 2013
Hi friends, I am adding element in the list returned by Collections.nCopies and got below error.
Exception in thread "main" java.lang.
Replied on May 26, 2013
The List in which you are adding the content are immutable. The list are immutable if returned by
Collections.nCopies and Collections.emptyList