public TYPE_1 METHOD_1 ( ) throws TYPE_2 { if ( ( array [ index ] ) == null ) { throw new TYPE_2 ( ) ; } TYPE_1 item = array [ index ] ; array [ index ] = null ; if ( ( index ) == 0 ) { index = ( array . length ) - 1 ; } else { index = ( index ) - 1 ; } return item ; }

public TYPE_1 METHOD_1 ( ) throws TYPE_2 { if ( ( ( index ) == ( - 1 ) ) || ( ( array [ index ] ) == null ) ) { throw new TYPE_2 ( ) ; } TYPE_1 item = array [ index ] ; array [ index ] = null ; if ( ( index ) == 0 ) { index = ( array . length ) - 1 ; } else { index = ( index ) - 1 ; } return item ; }
