String to Long

Problem

Write a java program to convert a character string into long data type.

Solution

We have already solved this problem using C++ in the post String to Integer. The code below shows a java implementation.

Code

Here is the code in Java

Tags:

Add a Comment

Your email address will not be published. Required fields are marked *