public int[] reset(){
  return Arrays.copyOf(nums,nums.length);
}

public int [ ] reset ( ) { return Arrays . copyOf ( nums , nums . length ) ; }
resets the array to its original configuration and return it .
