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 trialRulon Taylor
2,762 PointsHelp 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
1 Answer
Rob Bridges
Full Stack JavaScript Techdegree Graduate 35,467 PointsHello, classes, don't have arguments passed into them.
Public class BlogPost {
}
Will sort this out.
Thanks
Brendon Butler
4,254 PointsDidn't even notice that in his post. Haha
Brendon Butler
4,254 PointsBrendon Butler
4,254 PointsOne 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! :)