We cannot perform <Collection>.add
or <Collection>.addAll
operation on collections we have obtained from Arrays.asList
.. only remove operation is permitted.
So What if I come across a scenario where I require to add new Element in List
without deleting previous elements in List
?. How can I achieve this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…