Java Long Number Create toLong(String tStr)

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

Description

to Long

License

Open Source License

Declaration

public static long toLong(String tStr) 

Method Source Code

//package com.java2s;

public class Main {

    public static long toLong(String tStr) {
        try {//  w  w w .  ja v a 2  s .co  m
            return Long.parseLong(tStr);
        } catch (Exception e) {
            return -1;
        }
    }
}

Related

  1. toLong(String string)
  2. toLong(String string)
  3. toLong(String string)
  4. toLong(String strVal)
  5. toLong(String time)
  6. toLong(String v, long def)
  7. toLong(String val)
  8. toLong(String value)
  9. toLong(String value)