You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Stephen Colebourne <sc...@btopenworld.com> on 2003/03/06 23:26:30 UTC

Re: [lang] Mid - StringUtils Questions and Suggestions

> * Um, what's the difference between mid() and substring()?

mid (and left & right) are BASIC inspired methods. They differ from
substring in that
- they use length
- they do not throw index out of bounds exceptions

Stephen


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org