logoNEURAL COOK
SearchAll PostsTagsNotesAuthor
instagramtwitterfacebookyoutubelinkedinmailgithubrss
Copyright © 2026 All rights reserved.
•
VIKI
Built with Vikramaditya Singh
Built with
VIKI - A posts created with Next.js and Tailwind.css
java
Arrays
Data Structures
List
Math Operation
Binary Search
Sorting
String Operation
Snippets›java

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);
NextData Structures
CONTENTS
Splice