I need to write a java method unique that takes an arbitrary integer array and return an array with the same integers but no duplicates. Would I have to create the array inside the unique method ? and Would I have to declare arr1, arr2, and arr3 as well?

```
public static int[] unique(){
        int [] arr1;
        int [] arr2;
        int [] arr3;

     for(int i= 0; i < arr1.length; i++) {

         }

    } 

    public static void main(String[] args) {
        int[] arr1 = {34, 34, 10, 50, 56, 34, 67, 34};
        int[] arr2 = {23, 100, 5, 56, 67, 10, 10, 10, 34, 67};
        int[] arr3 = {25, 25, 25, 25};

        System.out.println(Arrays.toString(unique(arr1)));
        1
        System.out.println(unique(arr1).length);
        System.out.println(Arrays.toString(unique(arr2)));
        System.out.println(unique(arr2).length);
        System.out.println(Arrays.toString(unique(arr3)));
        System.out.println(unique(arr3).length);
    }

```

}

---