0
How to remove an element from array in java?
2 Réponses
+ 3
You can't remove an element from array in Java. You can only change it's value.
But you can add and remove elements in Java collections, such as ArrayList or LinkedList
+ 1
Just make the value the default value.
For example, in a string array, if you want the 1st element removed then just make it null.