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

**SOLVED** What's wrong with the code?

So the following link is a screenshot of my code, I was wondering why it shows me the 'if' response when I put in a value that isn't being blocked. What am I doing wrong here? It had worked earlier, I can't see any changes that I've made.

http://i.imgur.com/9M2UayW.jpg

1 Answer

Looks like you have an extra ";" at the end of your second if expression - remove that and see if it fixes your problem. :-)

Steven Snary I can't seem to find it. Could you point out which line its in.

Line 27, the end of the if statement. The semi-colon there separates the if statement from the block, so the block will always run.