I am trying to parse a String
to Long
which sometimes starts with 0
. I want that the result maintains the "0"
at the beginning of the Long (e.g. 0247484
instead of 247484
).
I have tried this Long.parseLong(city.getId())
but it deletes the first "0"
.
Thank you