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 trial

Java Java Data Structures Getting There Packages

Help with Challenge Task 4 of BlogPost. I can't figure out why the compiler wants a { in BlogPost.java line 3.

As far as I can tell, I have done exactly what was done in the video example. What am I missing?

public class BlogPost() { } should be pretty simple.

Help please

Brendon Butler
Brendon Butler
4,254 Points

One thing I would recommend is to count your opening brackets "{" and closing brackets "}".

If there is any variation in the results make sure every method, array, loop, if-else if-else statement has a beginning and an end.

If you can't find any variation please post your challenge code.

Hint: the Markdown Cheatsheet here on the forums is your friend! :)

1 Answer

Brendon Butler
Brendon Butler
4,254 Points

Didn't even notice that in his post. Haha