+ 1
How to Storing an Array String,
that we can use it also to adding or swaping or deleting that Array
1 Antwort
+ 14
An String[] isn't dynamic (elements cannot be added or removed after init, only changed or set to "" - the length of an array cannot be changed). Go for ArrayList (add, remove for single elements, clear to remove all elements). You need an iterator to remove elements:
http://stackoverflow.com/questions/10714233/remove-item-from-arraylist