/* tct12 int arrays while loops assignnments no type errors */ class tct12 { public static void main(String []args) { System.out.println((new first()).foo(1, false, 3)); } } class first { int [] x; boolean y; public int foo(int z, boolean flag, int count) { int index; x = new int [count]; index = 0; while (index < count) { x[index] = z; } return x.length; } }