small medium large xlarge

18 Jul 2012, 00:27
Geoffrey Clements (22 posts)

Hi, working through the code in the book. On pad 30 I tried the code from the book:

(->Book “Anathem” “Neal Stephenson”)

and I get:

java.lang.Exception: Unable to resolve symbol: ->Book in this context (NO_SOURCE_FILE:3)

I used google to find that I should have tried:

(Book. “Anathem” “Neal Stephenson”)

Is ->Book old syntax? Should it still be in the book?

You must be logged in to comment