Mega Code Archive

 
Categories / Java Book / 005 Collection
 

0333 Check for frequency

static int frequency(Collection<?> c, Object o) Returns the number of elements in the specified collection equal to the specified object.