subaray in java by slicing

Solutions on MaxInterview for subaray in java by slicing by the best coders in the world

showing results for - "subaray in java by slicing"
Alessio
12 Nov 2020
1import java.util.Arrays;
2public class SlicingAnArray {
3   public static void main(String args[]){
4      int intArray[] = {12, 14, 58, 225, 56, 96 , 3, 45, 8 };
5      intArray = Arrays.copyOfRange(intArray, 3, 7);
6      System.out.println(Arrays.toString(intArray));
7   }
8}