import java.util.ArrayList;
import java.util.List;
public class MyClass {
public static void main(String args[]) {
List<int[]> li = new ArrayList<>();
li.add(new int[]{6, 8, 1, 2});
li.add(new int[]{9, 3, 4});
li.add(new int[]{5, 7});
for (int i = 0; i < li.size(); i++) {
int[] arr = new int[4];
arr = li.get(i);
for (int j = 0;j < arr.length; j++) {
System.out.printf("%2d", arr[j]);
}
System.out.println();
}
}
}
/*
run:
6 8 1 2
9 3 4
5 7
*/