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

Andrei Oprescu
Andrei Oprescu
9,547 Points

Can I get some help? I don't know what is wrong.

input:

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 Andrei");

console.printf("Andrei is learning how to write Java");

}

}

when I write javac Introductions.java it says I have 2 errors. can you tell me what is wrong?

Zac Mazza
Zac Mazza
5,867 Points

I agree with Ronald. The code looks OK. Seeing the errors would make it easier to determine what's going on so we can help you. Can you post those when you have a chance?

Thanks,

Zac

Andrei Oprescu
Andrei Oprescu
9,547 Points

no problem guys. I solved the problem.

Thanks for your help

2 Answers

Zac Mazza
Zac Mazza
5,867 Points

Great to hear! Any insights to share in case someone else may be having a similar issue? What ended up resolving the issue for you?

  • Zac
Andrei Oprescu
Andrei Oprescu
9,547 Points

I re-took the courses which showed me what the workspace should look like.

Zac Mazza
Zac Mazza
5,867 Points

Thanks Andrei for the quick reply. Glad you were able to get things working!

  • Zac