About 28,200 results
Open links in new tab
  1. How to Get Subarray in Java? - GeeksforGeeks

    Jul 23, 2025 · In Java, subarrays are the contiguous portion of an array. Extracting subarrays in Java is common when working with …Read more

  2. How to create a sub array from another array in Java?

    Dec 14, 2010 · A sub-array would be pointing to the original array like a sub-list. Changing an array element will not affect the original …Read more

  3. Subarrays, Subsequences, and Subsets in Array - GeeksforGeeks

    Jul 24, 2025 · A subarray is a contiguous part of array, i.e., Subarray is an array that is inside another array. In general, for an array …Read more

  4. Slicing Arrays in Java - Baeldung

    Jan 8, 2024 · Also, since applications are written in “Java”, “Kotlin”, or “Scala” can run on the Java Virtual Machine, let’s say we’d like …Read more

  5. How to get a sub array of array in Java, without copying data?

    Aug 3, 2010 · There is no way to declare a subarray in Java if you use built in arrays like byte []. The reason is: The length of the …Read more

  6. Find All the Subarrays of a Given Array in Java

    Dec 10, 2024 · In this approach, we will use three for loops to find the subarrays of an array. The first loop to mark the start and the …Read more

  7. Create a Subarray in Java: copyOfRange (), arraycopy, Streams

    Oct 10, 2026 · Learn to create a subarray in Java with Arrays.copyOfRange (), copyOf (), System.arraycopy (), range streams and …Read more

  8. Java Arrays - W3Schools

    Arrays are used to store multiple values in a single variable, instead of declaring separate variables for each value. To declare an …Read more

  9. How to Create a Subarray in Java - Delft Stack

    Jul 27, 2021 · HOWTO · Java How to Create a Subarray in Java Learn how to copy a contiguous range into a new Java array with …Read more

  10. Get a subarray of an array between specific index in Java

    We can use the Java Stream, introduced in Java SE 8, to get a subarray from an array. The idea is to get a stream of elements …Read more