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

Raiyan Rahman
Courses Plus Student 8,091 PointsError: Cannot find symbol Treet.
Hi everyone, I seem to be getting an error every time I try to compile my Example class:
I've made sure the class names are correct and code is written as shown in the videos. So I don't understand why the system is failing to compile these classes.
Please let me know where I'm going wrong.
1 Answer

aakarshrestha
6,509 PointsYou have set the value but you have not called your get methods.
Try this:
Treet treet = new Treet("craigdennis", "new tweet", new Date(1421849732000L));
String name = treet.getmAuthor();
String descp = treet.getmDescription();
Date creationDate = treet.getmCreationDate();
System.out.printf("This is %s and he is such an %s. Created on %s", name, descp, creationDate);
Hope it gives you some idea!
Happy coding!