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}