Android String to Long Convert toLong(String obj)

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

Description

to Long

Declaration

public static long toLong(String obj) 

Method Source Code

//package com.java2s;

public class Main {

    public static long toLong(String obj) {
        try {//from w ww.j a  v  a  2 s  . co m
            return Long.parseLong(obj);
        } catch (Exception e) {
        }
        return 0;
    }
}

Related

  1. parseLong(String s)
  2. getLongValue(String value, Long defaultValue)
  3. isLong(String str)
  4. getLongValue(String str)
  5. stringToListLong(String input)
  6. toLong(String value)