Java Long Number From toLongList(String valus)

Here you can find the source of toLongList(String valus)

Description

to Long List

License

Apache License

Declaration

public static Long[] toLongList(String valus) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {

    public static Long[] toLongList(String valus) {
        Long[] longList = null;//from   w ww  .  jav a  2  s .  co m

        try {
            String[] strList = valus.replace(" ", "").split(",");

            longList = new Long[strList.length];

            for (int i = 0; i < strList.length; i++) {
                longList[i] = Long.parseLong(strList[i]);
            }
        } catch (Exception e) {
        }

        return longList;
    }
}

Related

  1. toLongId(Integer i)
  2. toLongInt(byte[] b)
  3. toLongitude(long fsuipcLongitude)
  4. toLongitude(String latLng)
  5. toLongLE(byte target[], int offset, int numBytes, long value)
  6. toLongMatrix(Number[][] matrix)
  7. toLongMin(double[] in, long[] out)
  8. toLongObject(Object obj)
  9. toLongs(byte[] bytes)