Thread: Vector help
View Single Post
  #1 (permalink)  
Old 01-22-2008, 01:28 PM
king_arthur king_arthur is offline
Member
 
Join Date: Jan 2008
Posts: 3
king_arthur is on a distinguished road
Vector help
hi guys!
i'm new to Java so i have a little problem... hope you could help me

i've read names from a file into vector and sorted them so i have like this in vector now

Darko
Ivan
Ivan
Mario
Mario
Mario
Mario
Martin
Martin
Martin
Pero
Pero

how can i count which name is most repeated?
in this case it would be Mario 5... i just need a number

thx a lot.
hope you understand everything 'cause my english is not very good
Reply With Quote
Sponsored Links