From 3796b55fe95f7fe9bf2a56bb6e121202011eda02 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Wed, 1 Nov 2006 02:09:41 +0000 Subject: [PATCH] Bug fix --- Robust/src/ClassLibrary/String.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Robust/src/ClassLibrary/String.java b/Robust/src/ClassLibrary/String.java index 1410b82f..9bb42aa6 100644 --- a/Robust/src/ClassLibrary/String.java +++ b/Robust/src/ClassLibrary/String.java @@ -71,7 +71,7 @@ public class String { public int indexOf(String str, int fromIndex) { if (fromIndex<0) fromIndex=0; - for(int i=fromIndex;i<(count-str.count);i++) + for(int i=fromIndex;i<=(count-str.count);i++) if (regionMatches(i, str, 0, str.count)) return i; return -1; -- 2.34.1