We help IT Professionals succeed at work.

End of the line

theartha
theartha asked
on
Medium Priority
437 Views
Last Modified: 2012-06-27
Hi there,

I have a record in String

AB123456000

I am trying to read the line in while loop,

line.substring(0, 2);
line.substring(2, 8)
line.substring(8,end of the line);

The last 3 zero's is not fixed, it can be 4 or 5 or 10 zero's, how to read from 8th character to last character.


Thanks
Comment
Watch Question

Senior Java Architect
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Awarded 2011
Awarded 2011
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Thank You
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.