
Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.
LinkedList<Integer> list =new LinkedList<Integer>();
for(int v = 1;v < 101; v++) {
list.add(v);
}
for(int i = 1;i < 20; i=i+2) {
for(int k = 0;k < 20-i;k++) {
System.out.print(" ");
}
for(int j = 0;j<i;j++) {
System.out.print(list.poll() + " ");
}
System.out.println("");
}
that's including the spaces
1 to 2 of 2