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 Getting There Type Casting

Gonzalo Torres del Fierro
PLUS
Gonzalo Torres del Fierro
Courses Plus Student 16,751 Points

problem with repl

ERROR: cannot find symbol
symbol: class Treet
location: interface Evaluation
Treet method$ukdto8s60fy2wrz3i5nq();

this error appear, when iยดm trying to reload, or check back my past lesson on type casting. any body can help, or understand what this error means??

Gonzalo Torres del Fierro
Gonzalo Torres del Fierro
Courses Plus Student 16,751 Points

reehouse:~/workspace$ java-repl
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Welcome to JavaREPL version 303 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_65)
Type expression to evaluate, :help for more options or press tab to auto-complete.
java> :load com/teamtreehouse/Treet.java
Loaded source file from com/teamtreehouse/Treet.java
java> Treet treet = new Treet ("gonzalo","example text", new Date());
ERROR: cannot find symbol
symbol: class Treet
location: interface Evaluation
Treet method$uw8ri3d1oefvn0p7t26q();
^
java>

1 Answer

Alexander Nikiforov
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 Points

If it is not too late: check video once more go to "01:03" moment :

First you load:

:load com/teamtreehouse/Treet.java

Then you import

import com.teamtreehouse.Treet

Only after that you can write

Treet t = new Treet()