U
usgog
I have a List of Object A, B, C, D, E, F, G, .etc. I want to do the
following scenario (Java 5 preferred):
1. Revert the list.
2. Get the first appearance of Object D if any.
3. If there is any appearance of Object B before the first appearance
of Object D, return true. else, return false.
I am not sure what algorithms I should use in this case, especially 2
& 3...
following scenario (Java 5 preferred):
1. Revert the list.
2. Get the first appearance of Object D if any.
3. If there is any appearance of Object B before the first appearance
of Object D, return true. else, return false.
I am not sure what algorithms I should use in this case, especially 2
& 3...