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

How can I reset Introductions.java? I did make a mistake somewhere because I can get the console right.

After I press enter I see a error on the console.

2 Answers

Hi Walter,

To get a clean version of Introductions.java, you can either copy paste the following code into your file

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

  }
}

or delete the workspace related to this part of the course, and launch a new workspace from the video player - building a new workspace for you.

Cheers

Casiey Lebron
Casiey Lebron
3,187 Points

This worked. Also if you delete your original "introduction file" and open up a new one and paste 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

you can open up the console by going to VIEW, then SHOW CONSOLE in workspaces. should be good as new !