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 Class Review

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,252 Points

My Class Review

Craig Dennis

I failed. :) Sorry!

I don't know if I just misinterpreted what you were saying when you set the challenge but I started out by creating the directory structure in Workspaces for java.util.Date` like we did for Treet.

I didn't realise we were continuing with the Treet example but I'm really pleased we're spending this time covering some of the things we learned in Java Objects because while I was able to make the Hangman game I didn't quite understand everything that was going on such as Packages and Constructor functions.

But doing this review helps refresh things for us

Is there a reason why we don't need to create new folders for util.date like we did for com.treehouse? Is it because Date is a predefined package in Java? Thanks :)

1 Answer

Craig Dennis
STAFF
Craig Dennis
Treehouse Teacher

Yep! java.util.Date lives in the system package of java.util There is a jar file that is included your class path. The jar file is like a zip file, and it has folders, so it has one for java and then a subfolder for util, and in there is the code for the Date class.

That make sense?

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,252 Points

I think for now I'll just take that it's a default/system package for Java so we don't have to prepare it in our projects. :)

It makes sense, kind of. Much of what I'm doing so far is still a blur but hopefully it won't be long before it clicks, as you say.

I have a good feeling about Java