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


What does this error mean?

./QuickFix.java:19: error: cannot find symbol


So I'm getting this error on something but I did import the set in java. And it's weird because the word set appears many lines further down than it usually does. Does this mean something different?

1 Answer

Miguel Rivas
Miguel Rivas
4,902 Points

I think that error may be several things.

It's necessary to read your code to see if you are missing an import or a miss-placed bracket }{ or )( parenthesis are causing the error.

Wrap your code with 3 backticks (```) on the line before and after. If you specify the language after the first set of backticks, that'll help us with syntax highlighting. (You can also click Markdown Cheatsheet below to more detailed info)

      <p>This is code!</p>

Exposing it allows others to solve your problem in a faster and more successful way.

Have a great day.