Implementation idea: define an integer array with the same length at a time through the length of the int array, and then circularly obtain the values of the int array and assign them to the integer array.
For example:
public static Integer[]to Integer array(int[]arr){