We're converting some .NET 3.5 code to Java (Android).
This Java code gives the error:
Syntax error on token "Chapters", VariableDeclaratorId expected after this token
this.add (new Book() {Chapters=50, OneBasedBookID = 1,
Long = "Bahai", Short = "ba", Color = c, BookType = b; });
The types are all correct.