int[] array1 = {1, 2, 3, 4, 5, 6, ,7, 8}; - working
array1 = {1, 1, 1, 1, 2, 5, ,7, 8}; - NOT working
The first line is working, but second line is not working.
How can I make the initialization from the second line in one single line of code?