Java Long Number Create toLong(String str)

Here you can find the source of toLong(String str)

Description

Converts a string to a long .

License

Open Source License

Parameter

Parameter Description
str String to convert

Return

The long value represented by the argument in decimal.

Declaration

public static long toLong(String str) 

Method Source Code

//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);
    }
}

Related

  1. toLong(String src)
  2. toLong(String str)
  3. toLong(String str)
  4. toLong(String str)
  5. toLong(String str)
  6. toLong(String str)
  7. toLong(String str, long defaultValue)
  8. toLong(String str, long val)
  9. toLong(String string)