How to get prefix string value in Android?

Viewed 2947

i am working in Android application, Using hasPrefix to get a first string value in iphone, but i didn't know how to do this? please help me

In iphone:

Name =@"Thomas edward";
if ([result hasPrefix:Thomas])  
{

}

Similarly Android, how to do this?

Thanks in advance

1 Answers
Related