r/learnjava • u/[deleted] • May 18 '16
Issue with a code on TMC. Some assistance would be welcome.
https://imgur.com/6fno9mi
1
Upvotes
2
u/desrtfx May 19 '16
When doing the MOOC, you need to follow the input and output format exactly as presented.
That's basically what the error message "Assertion failed" tells you.
2
u/[deleted] May 19 '16
I don't know jack about Java, but from the error I would try to remove all "System.out.println" and only print out the sum of the ages. in this case.
PS. do you have a picture of the sumOfTheAgesTest.java too?