Skip to content

Arrays

Splice

To create the sub-array

  • startInclusive – the start index to extract from the array inclusive
  • endExclusive – the end index to extract exclusive
String[] result = Arrays.stream(<array>, <startInclusiveIndex>, <endExclusiveIndex>).toArray(String[]::new);

Comments