public void remove ( TYPE_1 VAR_1 ) { int position = VAR_2 . METHOD_1 ( VAR_1 ) ; VAR_2 . remove ( position ) ; METHOD_2 ( position ) ; }
public void remove ( TYPE_1 VAR_1 ) { int position = VAR_2 . METHOD_1 ( VAR_1 ) ; if ( position >= 0 ) { VAR_2 . remove ( position ) ; METHOD_2 ( position ) ; } }