I'm trying to add Objects to my arraylist but its not working and its giving me
"Multiple markers at this line - Syntax error on token(s), misplaced construct(s) - Syntax error on token "a", VariableDeclaratorId expected after this token"
ArrayList<Record> records = new ArrayList<Record>();
Record a = new Record ("Math","Add","Due Date is", "20/12/2011");
Record b = new Record ("Science","biology","Due Date is ", "21/12/2011");
records.add(a);
records.add(b);