Java tutorial
//package com.java2s; public class Main { public static int[] toIntArray(String string) { string = string.substring(1, string.length() - 1); String[] strings = string.split(", "); int[] intArray = new int[strings.length]; for (int i = 0; i < strings.length; i++) { intArray[i] = Integer.parseInt(strings[i]); } return intArray; } }