Here you can find the source of toIntArray(String[] array)
private static int[] toIntArray(String[] array)
//package com.java2s; //License from project: Apache License public class Main { private static int[] toIntArray(String[] array) { int[] result = new int[array.length]; for (int i = 0; i < array.length; i++) { result[i] = Integer.parseInt(array[i]); }//from w w w . ja v a 2 s. c om return result; } }