Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
I am having trouble removing an element from an array. I can search and find the position in the array, but when I delete the position using: data[position] = null; There will be an empty position in the array. How do you get rid of this empty position? Do you have to create a new array with its size one less than the previous, or is there an easier way. P.S My array does not contain objects, it contains Integers. Thanks in advance Dean
Replies:
|
Sponsored Links
|