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 Perfecting the Prototype Censoring Words - Using String Equality

David Valentin
David Valentin
797 Points

TreeStory.java:1: error: class, interface, or enum expected import java.10.Console;.... I need help with this error.

After compiling, I keep receiving this error. Not sure what this means.

2 Answers

ofir moalmi
ofir moalmi
2,161 Points

can you post the code?

David Valentin
David Valentin
797 Points

Craig helped, it was a rookie mistake...accidentally added a v if front of import..which cause a huge mess...

treehouse:~/workspace$ javac TreeStory.java
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
TreeStory.java:1: error: class, interface, or enum expected

v import java.io.Console;
^
1 error

should just be

import java.io.Console