...
Code Block | ||
---|---|---|
| ||
Character[] array = new Character[10]; for(Character c: array) c = 'x'; // initialization attempt for(int i=0;i<array.length;i++) System.out.print(array[ji]); |
Compliant Solution
This compliant solution correctly initializes the array using a for loop.
...