String Handling – lastIndexOf ( )

  lastIndexOf ( ) Syntax int lastIndexOf(char ch);    lastIndexOf( ) is standard inbuilt method of String, it is used to search a given character (ch) from the last index number of invoking object if the given character is present…