public TYPE_1 METHOD_1 ( int index ) throws TYPE_2 { if ( ! ( this . METHOD_2 ( index ) ) ) { throw new TYPE_2 ( ) ; } else { TYPE_1 output = VAR_1 [ index ] ; VAR_1 [ index ] = VAR_2 . get ( 0 ) ; VAR_2 . remove ( 0 ) ; return output ; } }

public TYPE_1 METHOD_1 ( int index ) throws TYPE_2 { if ( ! ( this . METHOD_2 ( index ) ) ) { throw new TYPE_2 ( ) ; } else { TYPE_1 output = VAR_1 [ index ] ; if ( ( VAR_2 . size ( ) ) == 0 ) { VAR_1 [ index ] = null ; } else { VAR_1 [ index ] = VAR_2 . get ( 0 ) ; VAR_2 . remove ( 0 ) ; } return output ; } }
