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
Lee Walker
Courses Plus Student 641 PointsSyntax Error(s) Crystal Ball app/understanding arrays.
Hello fellows and fellettes,
Does anybody know how to fix/remove the Syntax errors (Syntax error, insert "}" to complete ClassBody)?
When I hover over the lines, that message pops up. If I click run, on my ADT stimulator, an alert pops up, asking mr to ix errors.
Without resolving the matter, I am not able to move forward.
I hope you can help.
Best regards & happy coding.
2 Answers
Cesar Rodas
1,338 Points{ That syntax error seems to indicate that you have a block of code with out a closing curly bracket. maybe you erased it by mistake? remember that every block must be surrounded by both an open and closed curly bracket. }
Ihsan Ahmed
2,670 PointsHi can you post your code and also the error message that you get from a compiler.
Lee Walker
Courses Plus Student 641 PointsGood evening Ihsan,
Thank you for replying to my post. My error has now been resolved. It was very simple. I was missing a { So I added it in, and was good to go :-)
Lee Walker
Courses Plus Student 641 PointsLee Walker
Courses Plus Student 641 PointsGood evening Cesar,
Thank you for responding.
Yes, I erased the curly bracket by mistake. Indeed you were correct. Also, I had added a few of these ; instead of theses , so that had affected my code.
I went through the block carefully, made adjustments and completed the stage.
Thank you!
:-)