5 d cannot be resolved to a variable 9 'val' is not compatible with array initializer expressions. Use the full form (new int[] { ... } instead of just { ... })