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 Basics Getting Started with Java Receiving Input

Code works fine in workspace. Same code in exercise shows errors? Not sure what you are asking for in the exercise that

My code works fine in workspace. However, the same code when used in the exercise gets errors? So, I am not sure what the exercise is asking for that is different from the code that appeared to be working just fine during the lesson?

Hi Sterling,

Is this for a code challenge? Your question is linked to the video "Receiving input".

If this is from a code challenge then please let us know what code challenge this is from and post the code you attempted so we can see what you might have did wrong.

1 Answer

Alexander Oaktree
Alexander Oaktree
515 Points

Did you check for the semicolon at the end of the statement?