Search array of java custom objects
<p>I have an array of custom objects CustomClass[] customArr where CustomClass is like</p>

<pre><code>Class CustomClass{

private String key;
private String value;

//getter &amp; setters

}
</code></pre>

<p>Now I want to search this array by a particular value.What is the best way to do this ?</p>
