![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)
![Indexof() =-1 means in java - Java String indexOf() Method with Example | Definition, Syntax, Usage & Types of indexOf() String Method in Java - BTech Geeks Indexof() =-1 means in java - Java String indexOf() Method with Example | Definition, Syntax, Usage & Types of indexOf() String Method in Java - BTech Geeks](https://btechgeeks.com/wp-content/uploads/2021/05/Java-String-indexOf-Method-with-Example.png)
Indexof() =-1 means in java - Java String indexOf() Method with Example | Definition, Syntax, Usage & Types of indexOf() String Method in Java - BTech Geeks
![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)