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 trialJonathan Grieve
Treehouse Moderator 91,253 PointsMy Class Review
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
Treehouse TeacherYep! 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
Treehouse Moderator 91,253 PointsJonathan Grieve
Treehouse Moderator 91,253 PointsI 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