Find Position of Character in String - Android Studio

PHOTO EMBED

Saved by [deleted user] #android #java

int i = textString.lastIndexOf("target");
content_copyCOPY

The value of i will be the position number of 't' in textString.