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 trialLearning coding
Front End Web Development Techdegree Student 9,937 PointsWhat does Console console = System.console exactly mean?
What does Console console = System.console exactly mean?
Thanks, Renรฉ
2 Answers
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsIt means create reference to quote:
Returns the unique Console object associated with the current Java virtual machine, if any.
and put the reference in the variable console
.
So that when you write console.println
you execute method on that exact console associated with current Java Machine.
Feel free to check documentation:
https://docs.oracle.com/javase/7/docs/api/java/lang/System.html#console()
Learning coding
Front End Web Development Techdegree Student 9,937 PointsThanks again Alexander Nikiforov!
For now I don't understand your answer and don't have time to ask and formulate right questions. Going on vacation, but I will be back :)
Craig Dennis
Treehouse TeacherCraig Dennis
Treehouse TeacherThanks Alexander Nikiforov ! Does this answer your question Rene van den Heuvel ? If so can you choose Best Answer on Alexander's post please?
Let me know if you still have questions