Here you can find the source of toIntArray(String str, String delimiter)
public static int[] toIntArray(String str, String delimiter)
//package com.java2s; //License from project: Apache License public class Main { public static int[] toIntArray(String str, String delimiter) { String[] strs = str.split(delimiter); int[] ints = new int[strs.length]; for (int i = 0; i < strs.length; i++) { ints[i] = Integer.parseInt(strs[i]); }//w w w.j a va 2s . co m return ints; } }