This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
This doesn't compile. The problem is fixed if I just declare and initialize x on the same line, but I'm curious as to why it doesn't compile. My book says it should. It also compiles if the second line is taken away. What's wrong?
EDIT: I resolved this problem on my own. The array variable x doesn't need brackets after it in line 6.