/* SI 413 Fall 2018
* Program to allocate a bunch of big arrays in Java
*/
class TestAlloc {
public static void main(String[] args) {
if (args.length != 1) {
System.out.println("Need size");
System.exit(1);
}
int size = Integer.valueOf(args[0]);
int[] arr;
for (int i=0; ; ++i) {
System.out.println(i);
arr = new int[size];
}
}
}