how to find the word with max count in several text files in java?
<p>now i have two arrays. one is string array with words in it. and a count array with corresponding counts in it. below i have printed them together....</p>

<p>ex: </p>

<pre><code>gladiator 8  
yamaha 6
gladiator 4
bike 6
brake 4
long 4
time 6
gladiator 35
yamaha 39
bike 17
gladiator 16
ss 19
type 16
yamaha 21
gladiator 15
india 8
yamaha 17
bike 7
gladiator 15
shine 9
yamaha 9
bike 8
gladiator 14
india 8
yamaha 18
bike 7
gladiator 9
</code></pre>

<p>so now i have first "gladiator" "8" then "gladiator" "4"... so on....
finally i want it as "gladiator" "12"..... like wise </p>
