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 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.