Java tutorial
//package com.java2s; import java.util.*; public class Main { public static long[] LongListtolongArray(List<Long> LongList) { int s = LongList.size(); long[] ret = new long[s]; for (int i = 0; i < s; i++) { ret[i] = LongList.get(i); } return ret; } }