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.
That's not an error. It's just the result of trying to print out a String array. The toString() method on an array doesn't do anything clever, it just inherits from Object. And the version of toString() in Object prints out something that's based on the class name and the hash code. You can look at the documentation to check: java.lang.Object#toString(). The "[L" part indicates an array.
To get the effect you probably want, you need to iterate over the array and print out individual values.
My, what a lot of unindented code, and how difficult to read.
You are not getting that output from that code, because you do not have any print statements there. Your error is caused by attempting to print something. I suggest you read the documentation for the Object#toString() method, and work out exactly what the type you are printing is. You can work that out from its class name.
Joined: Oct 13, 2005
To go all pedantic: The [ part denotes an array and the L and the semicolon are added to names of reference types.