![Manipulating Characters in a String (The Java™ Tutorials > Learning the Java Language > Numbers and Strings) Manipulating Characters in a String (The Java™ Tutorials > Learning the Java Language > Numbers and Strings)](https://docs.oracle.com/javase/tutorial/figures/java/objects-substring.gif)
Manipulating Characters in a String (The Java™ Tutorials > Learning the Java Language > Numbers and Strings)
![Manipulating Characters in a String (The Java™ Tutorials > Learning the Java Language > Numbers and Strings) Manipulating Characters in a String (The Java™ Tutorials > Learning the Java Language > Numbers and Strings)](https://docs.oracle.com/javase/tutorial/figures/java/objects-lastIndexOf.gif)
Manipulating Characters in a String (The Java™ Tutorials > Learning the Java Language > Numbers and Strings)
![java - Using indexOf on ArrayList of type Long returns -1, despite the object existing within the list - Stack Overflow java - Using indexOf on ArrayList of type Long returns -1, despite the object existing within the list - Stack Overflow](https://i.stack.imgur.com/keB3h.png)
java - Using indexOf on ArrayList of type Long returns -1, despite the object existing within the list - Stack Overflow
![Java string.lastIndexOf() to get the last position of a matching string or char inside the input string Java string.lastIndexOf() to get the last position of a matching string or char inside the input string](https://www.plus2net.com/java_tutorial/images/string-lastIndexOf.jpg)