0 points

Find Position of Character in String - Android Studio


dashboard

Posted by [deleted user] #android #java

int i = textString.lastIndexOf("target");
content_copy Copy

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