Java tutorial
//package com.java2s; import java.util.ArrayList; import java.util.List; public class Main { public static List<Long> changeList(String[] ss) { List<Long> list = new ArrayList<Long>(); for (int i = 0; i < ss.length; i++) { list.add(Long.parseLong(ss[i])); } return list; } }