public ArrayList<Integer> getRow(int rowIndex) {
        ArrayList<Integer> al = new ArrayList<Integer>();
        al.add(1);
        if(rowIndex <= 0)
            return al;
        for(int i=1;i<rowIndex;i++)
            al.add(this.combination(rowIndex, i));
        al.add(1);
        return al;
    }