Finds out the position of occurrence of String in a StringBuffer from the specified index
public class StringBufferExample {
public static void main(String[] args) {
StringBuffer buff = new StringBuffer("Hello World");
int value = buff.indexOf("World", 1);
System.out.println(value);
}
}




















