Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Introduction to Functional Programming Meet Streams flatMap

Edward Strudwick
Edward Strudwick
2,036 Points

Java: Intro to Functional Programming: Where actually are the 1,000 jobs stored that we are using from the job object?

Maybe a dumb question - I'm following the course fine and the functional programming all makes sense but it occurs to me that I'm pulling out all these jobs from the job object and I have no idea where within the project they are actually stored. Can anyone help??

2 Answers

Jason Larson
Jason Larson
7,539 Points

I noticed that your question has been out there for a few days without an answer, so even though I don't know anything about Java, I thought I'd give it a shot. At 2:20 in the video, he says "On the job object, there is a little snippet of what is required for the job. Now it's not the full description, it's just part of it. Now that's because the indeed API, the one that we're using, wants you to come to their site." Based on that statement, it sounds like somewhere earlier in the project, you connected the job object in your project to access the Indeed job listings via their API, so the information would be stored at indeed.com, not in your local project, and you are just connecting and pulling that data when you run your project. I didn't watch all the videos, so I couldn't tell you where that happened, I'm just answering based on what he said and my understanding of how to use APIs.

Edward Strudwick
Edward Strudwick
2,036 Points

Thanks Jason, appreciate you taking the time having spotted it was not answered. Getting java answers or any help on this course seems difficult! We used gitHub to download the project which Craig uploaded, but it can't be a live link up because the jobs don't change. I get all the same results Craig does in the videos. So it must be somewhere and static. Hence the question really.