I am using the substring fuction in Java and what I am finding is if the first character in the substring is a zero, it is dropped from the new string. Is there a way to prevent this?
Here is the code I am having issues with:
ccode = actnum.substring(1,2);
Both ccode and actnum are defined as strings. If more code is needed, please advise.