How to get a range of string in Android?

Viewed 2703

Currently i am working in simple android app, I have tried to range of string in iphone, its works, but i didn't know this in Android app? In iphone:

result = "mobile - check balance | rate: 0.036"

if ( [result rangeOfString:@"rate:"].location != NSNotFound) 
{

}

How to convert this in Android, please help me

5 Answers
Related