0 works

Find Position of Character in String - Android Studio


dashboard+ Project

Posted by @starbucks #android #java

int i = textString.lastIndexOf("target");
content_copyCopy to Clipboard

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


>> Browse more code snippets

more_vert