• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

String index out of range: -19

 
Aruldurai thomas
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I try to run a Java script program to replace a 32 bit string. The string contains the value of [A-Za-z0-9.-_].

The Input file contains 288450 lines.
when i try to execute the program.
I got the error message as "String index out of range: -19" and i got the output with only 86934 lines.

Can you please help me out for this issue, i am new to Java.

Arul
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34229
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arul,
Welcome to JavaRanch!

Can you post the code snippet that shows which line of your program throws that exception?
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Aruldurai thomas:
... I try to run a Java script program...

Java? Or JavaScript?

(If it's JavaScript, we'll probably move this to our HTML and JavaScript forum.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic