Get all the elements which are starting with a specified string from an Array List
<p>I am creating an application which displays a search result which is an Array List, based on the user input.  I need to display this result in an order where results are separated with the starting alphabet index, like all elements starting with alphabet "A" will be under the title A, starting with "B" will be under the tile B and so on... </p>

<p>I am successful with retrieving the first char of each element and comparing it with the alphabets but I feel like a log way.  Can any one please suggest me any direct way so that i can get the elements directly?</p>

<p>Thanks in advance, Tim</p>
