January 2018
Intermediate to advanced
434 pages
14h 1m
English
To parse the string to a Long data type, we use the .toLong() method with the string. It parses the string as a Long number and returns the result. It throws NumberFormatException if the string is not a valid representation of a number. Later, we will see examples for this.
Read now
Unlock full access