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

It won't print on the console, I just get a new line treehouse~/workspace$ any Idea what I might be doing wrong?

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 Sebastian");
    console.printf("I am learning how to use java");

} }

Console:

treehouse:~/workspace$ javac Introductions.java
treehouse:~/workspace$ java Introductions
treehouse:~/workspace$ java Introductions
treehouse:~/workspace

2 Answers

Cody Ingram
Cody Ingram
4,753 Points

Have you made sure that you saved the file first and that the file name "Introductions.java" is spelled correctly (including upper/lower casing)? Your code works fine for me.

I just had to save it, thanks!

I am having the same problem how did you save it