METHOD_0 ( ) { com . baeldung . java . collections . List < java . lang . String > IDENT_0 = new com . baeldung . java . collections . ArrayList ( asList ( STRING_0 , STRING_1 , STRING_2 , STRING_3 ) ) ; com . baeldung . java . collections . List < java . lang . String > IDENT_1 = new com . baeldung . java . collections . ArrayList ( IDENT_0 ) ; for ( java . lang . String next : IDENT_1 ) { if ( com . baeldung . java . collections . IDENT_2 . equals ( next , STRING_1 ) ) IDENT_0 . remove ( ( ( IDENT_0 . indexOf ( next ) ) - 1 ) ) ; } "<AssertPlaceHolder>" ; } indexOf ( java . lang . Object ) { for ( int i = 0 ; i < ( internal . length ) ; i ++ ) { if ( object . equals ( internal [ i ] ) ) { return i ; } } return - 1 ; }
org . junit . Assert . assertEquals ( IDENT_0 , asList ( STRING_1 , STRING_2 , STRING_3 ) )