title: ArrayList filter based on some condition in android
body: <p>I have an <code>ArrayList</code> in android which contains several names. Suppose user typed R, so I want to calculate how many names are there in the <code>ArrayList</code> which starts with R. for example if arraylist contains Ashok, Bimal, Ram, Raju, sunita then it should return 2 as there are 2 names starts with R</p>