private List<Integer> convertToList(int[] data){
  Integer[] wrapperType=ArrayUtils.toObject(data);
  return Arrays.asList(wrapperType);
}

private List < Integer > convertToList ( int [ ] data ) { Integer [ ] wrapperType = ArrayUtils . toObject ( data ) ; return Arrays . asList ( wrapperType ) ; }
the method converts the int [ ] to list < integer >
