Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Java Basics Getting Started with Java Introduction to Your Tools

after saving the "introductions.java" file, is not printing my name as it should, I'm i doing something wrong?

the following code is not printing my name:

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("my, name is mauricio");

} }

3 Answers

i just got it working, its a little confusing at first but i saved it all and compiled it and now it works just fine, thanks all, newbie here lol

Great!

Hi there!

Please make sure that you saved your progress by clicking File -> Save all!

Hi, thanks for the quick response, i did saved all documents, for some reason when i do "java Introductions" it wont print anything. bellow i show you what i have. i wonder if there is anything wrong with the code.

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("mauricio");

} }

Can you please copy/paste console output? Do you see any errors? It seems that there is everything OK with code. I managed to run it.