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 Data Structures - Retired Getting There Class Review

Pedro Araya
Pedro Araya
1,912 Points

I have an error and I don't know what to do.

Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
./com/teamtreehouse/Treet.java:12: error: cannot find symbol
mDescription = description;
^
symbol: variable mDescription
location: class Treet
./com/teamtreehouse/Treet.java:21: error: cannot find symbol
return mDescription;
^
symbol: variable mDescription
location: class Treet
2 errors

Gabe Olesen
Gabe Olesen
1,606 Points

Can you paste all your code using Markdown?

Don't get much from this, sorry.

4 Answers

Roxanne Ryan
PLUS
Roxanne Ryan
Courses Plus Student 5,089 Points

Here's a link to a stack overflow discussion that covers "cannot find symbol" error: https://stackoverflow.com/questions/25706216/what-does-a-cannot-find-symbol-compilation-error-mean

If you post your code, I'd be happy to see if I can help. :)

Kentessa Fanfair
Kentessa Fanfair
11,261 Points

There's not much to go with from your post but my guess is that you probably misspelt something in the declaration. Check and make sure that you declared the variable with an uppercase String or the variable identifier is actually mDescription

make sure you have declared a String member in your class named mDescription.