In scrapbook, I get a syntax error when I try to specify the type Book of my ArrayList. Here is the code:
ArrayList<Book> list = new ArrayList<Book>();
Book b1 = new Book("Great Expectations");
Book b2 = new Book("War and Peace");
The error is:
Syntax error on token "<", invalid AssignmentOperator
Installed I have:
Any help or suggestions, greatly appreciated as I'd like to move to lesson 10
This has been resolved. I had two installations of the jdk, x86 and x64 - I uninstalled everything - and reinstalled cleanly. All fixed.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.