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 Using your New Tools Errors

Diego Silva
Diego Silva
313 Points

Syntax errors aren't detected by the program.

I changed String to lower case, but the code still runs ok. Even misspelling, like 'Sting' the code still works fin and ask me to type name and adjective like he wanted in the question, it doesn't recognize as an error.

4 Answers

Patrik Horváth
Patrik Horváth
11,110 Points

i m sure you wrong, have you tried biuld new app ? or Compile your file ? it should let you because string is not defined in JAVA! and if it work delete your COMPILER and install another one :)

sometimes it happends to me too when i just SAVE file and press PLAY it works but when i COMPILE it it doesnt why ? because program run from last Succesfull biuld

and if you use TeamTreeHouse workspace it can happends because it has a lot of bugs, and you should write mail to Support

I found a bug. Where can I report that? In the unlikely situation you stumble across a bug, go ahead and shoot us an email at help@teamtreehouse.com with a link and a screenshot. If this bug hasn’t been reported before, we’ll award you with a special Exterminator badge as a > thank you!

Diego Silva
Diego Silva
313 Points

Hi Patrik,

Yah it seems it doesn't compile the code for some reason. I did same as he did in the video. I'm using the workspace provided by TreeHouse. It is actually bit annoying because sometimes I can't type in the main code so I need to close and open it again. Even if I create new file still doesn't work. Anyway, thanks for ur help!

Patrik Horváth
Patrik Horváth
11,110 Points

try it in some IDE for java you can try IntelliJ, Eclypse, NetBeans or for Begginers there is BlueJ where you can easly learn OOP because it show you REAL object and all his features and more :) also Console no work in real IDE :) there you need use System.in and System.out, this should be writen in Java courses because peoples get then confused :)

Diego Silva
Diego Silva
313 Points

Thanks man

I will try one of them.

Bit of an old post, but in regard to what Patrik Horvath said. You CAN use the console import in a real IDE. I just made a java file and used command prompt to compile the file. The result worked just fine, so I will definitely say that you can use the console import in native java, and thus it should work in an IDE. Though I will say, its a lot more common to just use system.out.println() instead of the console approach, but it doesnt mean the other approach is null and void. ;p

Just wanted to give my opinion on that matter, cheers.

kind old question, but I think he forgot to save it up.