Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Strange StringIndexOutOfBoundsException

Reply
Thread Tools

Strange StringIndexOutOfBoundsException

 
 
John C. Bollinger
Guest
Posts: n/a
 
      08-26-2004
dutone wrote:

[...]

> x.equals("^\r\n") but only because the "^\r\n" string is 5 chars long
> and the exception says the index is -5.


No, "^\r\n" is 3 chars long: '^', '\r', and '\n'.


John Bollinger

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why did i get StringIndexOutOfBoundsException? rainy Software 0 08-02-2010 03:57 AM
java.lang.StringIndexOutOfBoundsException: String index out of range:34 Sanjeev Java 1 07-01-2008 10:27 PM
AVG Email Scanner activating at strange times with strange IP addresses dennispublic@hotmail.com Computer Support 1 08-26-2006 04:27 AM
Strange taskbar behaviour (notification area) Falcon Wireless Networking 0 08-17-2004 09:03 AM
Question About Strange 'C' Code Syntax ( Well strange to me anyway ) Harvey Twyman C Programming 8 10-25-2003 05:54 AM



Advertisments