Java Long Number Create toLong(String str, long val)

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

Description

to Long

License

Open Source License

Declaration

public static long toLong(String str, long val) 

Method Source Code

//package com.java2s;
// it under the terms of the GNU General Public License as published by

public class Main {
    public static long toLong(String str) {
        return Long.parseLong(str);
    }/*  www.  ja v  a  2s .  com*/

    public static long toLong(String str, long val) {
        return str != null ? Long.parseLong(str) : val;
    }
}

Related

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