String[] numbersString = {"1", "2", "3"};
List list = new ArrayList();
for (int i = 0; i <>
{
Long tmp = Long.valueOf(s[i]);
list.add(tmp);
}
//convert Long ArrayList to Long[] array
Long[] numbersLong = (Long[])list.toArray(new Long[0]);
No comments:
Post a Comment