Choose among a set of elements, all elements that satisfy a condition
<p>let's say i have a list with some elements and i want to choose all those who do not satisfy a certain condition. i was thinking about something like this:</p>

<pre><code>public void choose(Condition c) {
     choose all elements that satisfy c.CheckCondition(elem)
}
</code></pre>

<p>however, i think it's highly unelegant and it forces to user to implement a <code>Condition</code> object with 
a certain function that will check if an element satisfies a condition.
if it was c++ i would send a pointer to a function as a parameter but its not possible in java.
I thought about using <code>Comparable</code> object but it's no good since i have to implement it in my class instead of getting it from the user.</p>

<p>any other elegant ideas for this problem?</p>

<p>thanks!</p>
