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
Ryan Carlos
422 PointsHow do I translate "console" Java into a IDE, in terms of actually coding... For example...
For all the people that did Java lessons, even tho I'm only on beginner and it is teaching me, CONCEPTS well, but not actually coding very well.
So basically, in Java... I can easily put ... System.out.println ("Hello world!"); ...
But I can't even put ... console.printf ("Hello world!"); ... into a IDE... It's weird, like how am I suppose to actually code if the syntax is weird and not accepted.
1 Answer
Rob Bridges
Full Stack JavaScript Techdegree Graduate 35,467 PointsHey there Ryan,
Rebecca is right, printf is a good version to print something formatted, however if you wanted to do input output, like saving an user's response as a variable, console isn't going to work in an IDE, the two main classes that can do it, are Scanner. And Buffered Reader
Both of these are going to get the job done as far as input output is concerned, Scanner does seem to a bit more user friendly and easier to set up in the beginning, however, many people have found the opposite and prefer Buffered Reader, they are both good at I/O and will do everything Console can do, so I recommend you look into them both, try them out and make the decision on which one works best for you.
Thanks.
Rebecca Rich
Courses Plus Student 8,592 PointsRebecca Rich
Courses Plus Student 8,592 Pointshttps://teamtreehouse.com/community/is-consoleprintf-good-practice