title: Trying to find all occurrences of an object in Arraylist, in java
body: <p>I have an ArrayList in Java, and I need to find all occurrences of a specific object in it.
  The method ArrayList.indexOf(Object) just finds one occurrence, so it seems that I need something else.</p>