Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java clump list

int[] arr = new int[]{3, 4, 5, 5, 5, 6, 2, 2};

IntStream.of(arr)
  .filter(data -> Collections.frequency(Arrays.asList(arr), data) > 1)
  .distinct()
  .forEach(data -> { System.out.println(data); } );
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #clump #list
ADD COMMENT
Topic
Name
2+2 =