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 Perfecting the Prototype Censoring Words - Using String Equality

Name:GoogleSearch orJonathan Sum
Name:GoogleSearch orJonathan Sum
5,039 Points

Why is there a \n\n?

console.printf("That language is not allowed. Exiting. \n\n"); Why is there a \n\n?

Kristian Egebæk-Carlsen
Kristian Egebæk-Carlsen
8,902 Points

\n is a newline in the printing environment. So if there are 2 of them, the output would be:

That language is not allowed. Exiting.

'Another printed text'

Name:GoogleSearch orJonathan Sum
Name:GoogleSearch orJonathan Sum
5,039 Points

thx Kristian Egebæk-Carlsen I am sure that i am a stupied.

2 Answers

tyrell tucker
tyrell tucker
510 Points

Your not stupid Jonathan Sum because I needed the answer to that same question and i'm sure many more did aswell mate! ;)