I want to get the particular index of the array list, by using only contained text. Say suppose,
I have arraylist as
Test = {"LabTechnician","SeniorLabTechnician_4","Pathologist","SeniorLabTechnician_6"}
If want the index nos of both the SeniorLabTechnician, i have to use the exact string in the indexOf and lastindexOf method. Like Test.indexOf("SeniorLabTechnician_4") and Test.lastindexOf("SeniorLabTechnician_6")
this is will get me the exact answer.. But instead of that,by using only prefix say like senior or some thing like, i want the exact same answer before..
Like
Test.indexOf("Senior") and Test.lastindexOf("Senior")...
Please suggest
this should help.