Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRob B
11,677 PointsCompareable, Task 1
I'll be honest, I don't know what I'm doing on this one. It seems I understand things are we go along with the coursework, but every time we get to these tasks (since before I started the Java Objects course) I have trouble understanding what is really wanted.
I thought I understood what was wanted, but no. It's getting harder to force myself to stick with the coursework at this point. (Alright, grouching aside....)
public int compareTo(Object obj) { BlogPost bp = (BlogPost) obj; return 1; }
What's wrong with my code?
1 Answer
Kevin Faust
15,353 PointsDid you remember to implement the Comparable interface?
Rob B
11,677 PointsRob B
11,677 PointsIt's always the little things that get overlooked. Thanks for that.
Kevin Faust
15,353 PointsKevin Faust
15,353 Pointsnp