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 trialAndrew Cross
Courses Plus Student 45 Pointsconsole.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");
}
}
3 Answers
qlpxjevhuv
10,503 PointsThe \n escape character may help you achieve what you're striving for.
console.printf("Hello! \n");
console.printf("Does it show now?");
Arezki Sadoudi
108 PointsI've same problem, How to save (the big orange point is showed)
Robert Richey
Courses Plus Student 16,352 PointsHi 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.
Cheers
Arezki Sadoudi
108 PointsHi Robert,
Thank you .
Robert Richey
Courses Plus Student 16,352 PointsRobert Richey
Courses Plus Student 16,352 PointsHi 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.
Cheers!