Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java array delete elements

//Make an res array that is equal to a but don't contains number 0
int[] res = Arrays.stream(a).filter(x -> x != 0).toArray();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #array #delete #elements
ADD COMMENT
Topic
Name
3+3 =