Convert String to Long in Java

Problem

Given the following String containing a textual representation of an Long:

String s = "9876543210";

How to convert this String to an Long?

Solution

Long l = Long.parseLong(s);