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

Liron Tal
Liron Tal
4,825 Points

Why both load and import Treet.java to the REPL?

Hi all,

In the video, Craig is both loading Treet.java and importing it. Why doing both?

Thanks! Liron

1 Answer

Marina Alenskaja
Marina Alenskaja
9,320 Points

Hi Liron

First the files you want to work with need to be imported and then you need to load them into a repl. I don't quite know how best to explain it but consider it the same as downloading a pdf file to your computer (importing) and then loading the file in Adobe reader. Does that answer your question?

Liron Tal
Liron Tal
4,825 Points

I guess, although when I import a library for example to my class, I don't load it