Long story short (in Java):
String input= "0888880747;
long convert = Long.parseLong(input);
The value of convert is now: 888880747
How can I parse the String
to a long
but retain the leading zero?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…