> int a = modified.indexOf("t");
> String substr =
> modified.substring(modified.length(), a-6);
>
>
> this code is wat i manage to do but it will read from
> the start of the string..now i want it to read from
> the back is there a way to do it?
String substr = modified.substring(a-6);
will give you all the characters starting at index a-6 to the end of the string.
how do i use substring to get the last characters of a word (field). For example, the datavalue in field = abcdefg25. I need to get the final 4 chars "fg25". The field is string and could be a long string so I need to start at the end of the field and count back .
so is there a way to do this?
thankyou..