I am parsing a string and need to store the value as a short.
Using the following line of code:
short month = Short.parseShort(splitarray.toString()));
Although its returning 2 instead of 02.
How to preserve the actual value of 02?
I've reversed engineered a schema, that is not controlled by me. As a result the value will need to be stored as a short instead of string.