ClusterConcept
Inclusive lastIndexOf Bound
cluster-55
String.lastIndexOf(query, fromIndex) treats fromIndex as an inclusive upper bound when scanning backward, so reusing the prior match index can return the same occurrence again, breaking “find previous” loops.