parseLong() Method in java

Java Programming Language Number Class in java (Article) Number Class in java (Program)

3861

Program:

public class ParseLong {
    public static void main(String args[]) {
        // Using Long.parseLong to convert a string to a long
        long x = Long.parseLong("298798");

        // Printing the result
        System.out.println(x);
    }
}

Output:

298798
Press any key to continue . . .

This Particular section is dedicated to Programs only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.