Link to home
Start Free TrialLog in
Avatar of theartha
thearthaFlag for United States of America

asked on

End of the line

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
ASKER CERTIFIED SOLUTION
Avatar of CPColin
CPColin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of theartha

ASKER

Thank You