public static int [ ] asIntegerTypeArray ( List < Integer > input ) { int [ ] result = new int [ input . size ( ) ] ; for ( int i = 0 ; i < result . length ; i ++ ) { result [ i ] = input . get ( i ) ; } return result ; }
As integer type array .