I am currently doing chapter 5 of the Greenfoot Book, and learning about arrays currently.
When I do the following code:
The following error appears:
illegal start of expression
But if I do this:
It compiles fine. Could someone help?
String[] whiteKeys; whiteKeys = {"a", "s", "d", "f", "g", "h", "j", "k", "l", ";"};
String[] whiteKeys = {"a", "s", "d", "f", "g", "h", "j", "k", "l", ";"};