This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes String index out of range: -19 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "String index out of range: -19" Watch "String index out of range: -19" New topic
Author

String index out of range: -19

Aruldurai thomas
Greenhorn

Joined: Jul 17, 2008
Posts: 1
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

Joined: May 26, 2003
Posts: 30789
    
157

Arul,
Welcome to JavaRanch!

Can you post the code snippet that shows which line of your program throws that exception?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

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.)


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: String index out of range: -19