Here you can find the source of toLong(String str)
Parameter | Description |
---|---|
str | String to convert |
public static long toLong(String str)
//package com.java2s; //License from project: Open Source License public class Main { /**/*w ww . j av a 2 s.c o m*/ * Converts a string to a {@code long}. * * @param str String to convert * @return The {@code long} value represented by the argument in decimal. */ public static long toLong(String str) { return Long.parseLong(str); } }