1 2 3 4 5 6 7 8 9 10 11 12 13
public class PR140 { public static void fill(int[] a) { for (int i = 0; i < a.length; i++) { a[i] = i; } } public static void main(String[] args) { int[] a = new int[3]; fill(a); a.length = 3000; fill(a); } }