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 Getting Started with Java Introduction to Your Tools

Why not System.out.println(); command to print? Is this just because we are not in local system?

Why not System.out.println(); command to print? Is this just because we are not in local system?

3 Answers

Alexander Nikiforov
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 Points

You can use both when you are in Workspaces. It does not matter

In IDE when you get there System.out.println is preferred, because it is better not to use Console in IDEs

Read here for more:

http://stackoverflow.com/questions/26470972/trying-to-read-from-the-console-in-java

If you want to dig into details of what is better

Start from here, for example

http://stackoverflow.com/questions/4005378/console-writeline-and-system-out-println

Thanks...

Thanks

Lucas Frixione
Lucas Frixione
1,332 Points

i had that same doubt too thanks!