Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unexplicable???

807588Apr 4 2009 — edited Apr 4 2009
I have two text files which are identical, I am reading from them in one i get an StringIndexOutOfBoundsException: String index out of range: 13 and in the other it compiles ok:

the text file that gives me the exeption is:

0111000000000
1000111000000
1000000111000
1000000000111
0100000000000
0100000000000
0100000000000
0010000000000
0010000000000
0010000000000
0001000000000
0001000000000
0001000000000

the one that compiles is:

0111000000000
1000111000000
1000000111000
1000000000111
0100000000000
0100000000000
0100000000000
0010000000000
0010000000000
0010000000000
0001000000000
0001000000000
0001000000000

to me they are identical ? can sum1 point out the obvious before I make state this in unexplicable!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 2 2009
Added on Apr 4 2009
16 comments
213 views