Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Java Objects Meet Objects Methods

%n no longer functioning, instead /n. Want to fully understand.

In this course we changed from importing java.io and instead of using console.printf to display text we are using System.out.println etc.

I am assuming that %n for a new line isn't working because of that. If I am correct or not I still would like to understand why there's a discrepancy at all? I remember learning from another video that %n is used in Linux and other languages more commonly? If that's the case why doesn't Java support its use out of the box?

I guess generally I would like to know why a language would settle on one version over another. I was going to practice using %n, because to my newbie brain it sounded like it would have wider application. But now I'm thinking that it would be bad practice if I need to import a package everytime I write a piece of code.

Help me understand if this is good thinking or not, or what you would do. Thank you in advance.