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

Console Function

Is the java.io.Console function used? I have learned to use this console.printf and console.readLine by Treehouse. When i try all this in eclipse then it doesnt work but it does work in treehouse workspace. Im getting stressed out because i feel like i should learn the System.out.(Method) thingy. Do they really use Console.printf and console.readLine and so on nowadays in Bussiness? I wanna get a job when i'm older.

2 Answers

It wont work in Eclipse, since the System.io.Console uses the Console/Terminal of your OS. Eclipse on the other side usually uses his in-build output-window thing (the white window at the bottom of Eclipse).

What you are talking about is System.out.println or printf

Should i continue my java course and dont care about Console not working in eclipse?

I suggest you to continue the java course till you finished it. And then search for a project...just try to program something...nothing big... just something so you can practice to code. And when you have problems in this project just ask google or stackoverflow. You wont learn how to program by copying the code from the videos. You just have to do it.

So finish the course, or read a book (there are some free ebooks just use google) about java. And then learn by doing. TH just gives you some Tools(knowledge) but you need to start practicing to know how to use them