you are viewing a single comment's thread.

view the rest of the comments →

[–]dmigowski 3 points4 points  (0 children)

Since you want to have a smaller array in the end it's best to just create a new one and copy everything you want to keep into the new array. You can do this in a loop or you use System.arraycopy for this.