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 Strings and Variables

console.printf("Hi,Second Line Doesnt Show"); help please

import java.io.Console;

public class Introductions {

    public static void main(String[] args) {
        Console console = System.console();
        // Welcome to the Introductions program!  Your code goes below here
        console.printf("Hey there");
        console.printf("whats going on it doesnt show");

Hi Andrew,

I added markdown to help make the code more readable. If you're curious about how to add markdown like this on your own, checkout this thread on posting code to the forum . Also, there is a link at the bottom called Markdown Cheatsheet that gives a brief overview of how to add markdown to your posts.


3 Answers

The \n escape character may help you achieve what you're striving for.

     console.printf("Hello! \n");
     console.printf("Does it show now?");

I've same problem, How to save (the big orange point is showed)

Hi Arezki,

In Workspaces, you can save a file by clicking the File menu option and then selecting Save. This will remove the red dot, indicating the file has been saved.


Hi Robert,

Thank you .