[489] in java-interest

home help back first fref pref prev next nref lref last post

Re: String.indexOf(String,int)

daemon@ATHENA.MIT.EDU (Michael Mills 21728)
Fri Jun 23 21:16:09 1995

From: ekim@nyquist.bellcore.com (Michael Mills 21728)
To: java-interest@java.sun.com
Date: Fri, 23 Jun 1995 17:40:30 -0400 (EDT)
Cc: ekim@nyquist.bellcore.com (Michael Mills 21728)

Hi,


OK after reading the same line in the documentation 30x I answered one
of my questions myself:

YES substring(6000,6005) SHOULD return 5 chars.

From the doc:

 public String substring(int beginIndex,
                          int endIndex)

      Returns the substring of a String. The substring is specified by a
      beginIndex (inclusive) and an endIndex (exclusive).


I hope to other part of the question does not turn out to be as stupid :-)



Mike

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post