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 trialBrenton Hazell
38 PointsThe 2nd line of text is not showing up.
After I compile and save the work, I try running java Introductions in console and the only result I get back is the first line of code I compiled. I have C+P my code so far below. Thanks for the help!
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("Hello, my name is brenton");
console.printf("Brenton is trying to write java");
} }
1 Answer
Dakota Conway
2,869 Pointsconsole.printf("Hello, my name is brenton\n Brenton is trying to write java");
Brenton Hazell
38 PointsBrenton Hazell
38 PointsDon't worry I worked it out, had to remove the ";" from the first line.