Hi,

This may seem a simple one yet a little tricky.I am trying to convert two seperate

String objects into two seperate Integer objects.Then I am trying to find the difference between two numbers .The tricky part is the String starts letters and then an _ and then the number and ends with a file extension.gz.Let me give an example :

Result should be the difference between 00000127 and 00000123 and append the ABCDE_at the beginning and .gz at the end.

.So the expected result in the above case is :

Here are the steps I am thinking of doing

1.extract numeric part by using substring, so the result would be 00000123 and 00000127.

2.Convert the extracted part to a Integer Object.This is the tricky part,because the String will start with 00000 ,so is it ok if i do the Integer.parseInt("00000123 "),because i think 0000 will be converted into octal.

3.Once both the strings are converted into integers,i need to find their difference and for the difference you create a new string object append ABCDE_ into the beginneing and .gz at the end and add it to a list.

I am comfortable doing step 1 ,step 2 and step 3 is where i need help.

Thanks Udaya