How to convert String to long in Java? - Stack Overflow
I got a simple question in Java: How can I convert a String that was obtained by Long.toString() to long? ... Long.parseLong("0", 10) // returns 0L Long.parseLong("473", 10) // returns 473L Long.parseLong("-0", 10) // returns 0L Long.parseLong("-FF ......