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
Damon Tunstall
2,327 PointsI don't understand the Console class. Why is it taught if I can't use it in an IDE?
From reading around, it seems as though Console can't be used in Eclipse, or Intellij IDEA. So my question is, what can we use it on? Do we just learn it on TeamTreehouse as a concept?
1 Answer
markmneimneh
14,133 PointsHi
Console and System io are intended for line command type application ... i.e.; a non gui application that you start off the command line and you may want to pass on a parameter on startup, or to prompt the user to input a value.
For we app and Window apps (swing, JavaFX), you are right you won't be using the console or System classes unless you want to print something out during development ... Example, if I want to test if if statement is executing properly, I may send messages to the console ... certainly you could do it in other way, but generally, this is how I debug my app.
Hope this helps. If this answers your question, please mark the question as answered.
Simon Coates
28,695 PointsSimon Coates
28,695 PointsI'm not sure the extent to which console or system.in are real world ways to get inputs. you'd ordinarily get inputs from some GUI element or a HTTP request maybe, depending on the environment.