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

Kyle Scott
Kyle Scott
51 Points

Error. Introductions.java:8: error: reached end of file while parsing console.printf("Hello, my name is Kyle"); ^

Not understanding what is happening here at all, I typed out exactly what Craig had typed.

Kyle Scott
Kyle Scott
51 Points

I made a screenshot so that way it can be seen https://w.trhou.se/kp5ca6bo7c

1 Answer

Rich Zimmerman
Rich Zimmerman
24,062 Points

Line 6

Console.console = System.console();

Should be

Console console = System.console();
Kyle Scott
Kyle Scott
51 Points

Receiving same error after fixing it.

https://w.trhou.se/zfd7cj4ygq

Kyle Scott
Kyle Scott
51 Points

Actually, I'm sorry now it's something new

Introductions.java:3: error: class Introduction is public, should be public class Introduction {

Rich Zimmerman
Rich Zimmerman
24,062 Points

Might be because your file is Introductions.java (Plural Introductions), but your class is Introduction (singular).