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 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.