protected int[] strToArray(String str) {
        //return str.split(",")*.toInteger()
        String[] splits = str.split(",");
        int[] numbers = new int[splits.length];
        
        for (int n=0; n<splits.length; n++) {
            numbers[n] = Integer.parseInt(splits[n]);
        }
        
        return numbers;
    }