Java List to Long Number Array toLongArray(List values)

Here you can find the source of toLongArray(List values)

Description

to Long Array

License

Open Source License

Declaration

private static long[] toLongArray(List<String> values) 

Method Source Code

//package com.java2s;

import java.util.List;

public class Main {
    private static long[] toLongArray(List<String> values) {
        long[] ls = new long[values.size()];
        for (int i = 0; i < ls.length; i++) {
            ls[i] = Long.parseLong(values.get(i));
        }/*from  ww  w. j  a  v  a 2s .c o m*/
        return ls;
    }
}

Related

  1. toLongArray(List list)
  2. toLongArray(List list)
  3. toLongArray(List list)
  4. toLongArray(List list)
  5. toLongArray(List list)
  6. toLongList(List members)
  7. toLongList(List stringList)
  8. toLongList(Set set)