private static int[] convertStringArrayToIntegerArray(String[] numberArray) {
        int[] retVal = new int[numberArray.length];
        int i = 0;
        for(String s:numberArray){
            retVal[i++] = Integer.parseInt(s);
        }
        return retVal;
    }