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




















