How to convert String to long in java

String str = "144295816000";
long l = Long.parseLong(str);
or
long l = Long.valueOf(str);

No comments:

 Python Basics How to check the version of Python interpreter mac terminal

Popular in last 30 days