public static int locateFromEnd(String line,IntPredicate testFunction){
  int start=line.length() - 1;
  int end=-1;
  int incr=-1;
  return locate(line,start,end,incr,testFunction) + 1;
}

public static int locateFromEnd ( String line , IntPredicate testFunction ) { int start = line . length ( ) - 1 ; int end = - 1 ; int incr = - 1 ; return locate ( line , start , end , incr , testFunction ) + 1 ; }
locates from end of the string .
