Here you can find the source of arraysDims(String[] arr)
static public int[] arraysDims(String[] arr)
//package com.java2s; //License from project: Open Source License public class Main { static public int[] arraysDims(String[] arr) { if (arr.length > 1) { int[] idx = new int[arr.length - 1]; for (int i = 1; i < arr.length; i++) { idx[i - 1] = Integer.parseInt(arr[i]); }// w w w . j a v a 2 s .c o m return idx; } return null; } }