get data frequency from specific variable-in-object arraylist
<p>I have an object, named objectOne, which each of its row contain 3 variables (String var1, String var2, int var3). So for each row, the data should be <code>var1;var2;var3</code></p>

<p>My question is how to count frequency based on its object and its variable-in-object ? because code like <code>int occurrences = Collections.frequency(list, item);</code> cannot get its occurrences for a specific variable-in-object.</p>

<p>For example i have </p>

<pre><code>objectOne :
is;is;125
that;is;861
you;are;90
that;is;469
</code></pre>

<p>I want to get how many occurrence of <code>is</code> word in var2 column (which the answer should be 3) and how many occurrence of <code>that</code> word in var1 column (which the answer should be 2) ?</p>

<p>Any help will be appreciated :)</p>
