the output seems to come out as 55555 4444 333 22 1 but i would like it to be reversed,(11111,2222,333,44,5) [closed]

this is the code, IO would like the output to be reversed.

public static ArrayList<Integer> MakeSequenceAL(int N){ ArrayList<Integer> z=new ArrayList<Integer>();
if (N < 1){ return(z);
    } else {
    int i, j;
    for(i = N; i >= 1; --i){
        for(j = 1; j <= i; j++){
            z.add(i); }
        }
        return(z); }
        }
}