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 Local Development Environments Advanced Tooling Finishing TreeStory

Lee Reynolds Jr.
Lee Reynolds Jr.
5,160 Points

Finishing Treestory and completely lost

I think that I need someone that can help me out by walking me through this thing step by step. I don't know why but this is so simple when Craig is walking me through it and I usually do well once he lets us ride along on our own but here I am stuck in glue. Can anyone please assist me in understanding what I am lacking. I haven't included any code because I just don't know where to start.

1 Answer

Ryan Ruscett
Ryan Ruscett
23,309 Points

Hola,

Have you started the Java course from the beginning? You mentioned that you did pretty well during parts.?

Don't get discouraged. This is completely normal. The key is to break it down into the smallest parts possible. Start from the beginning and watch each video. If you finish the video and you find yourself asking, "What the heck". Write down a few sentences about what has you confused. Post them here and I will address them the best I can.

Do this for every section or heck, sentence within a section you don't understand. If you start from the beginning and do this, trust me. By the time you finish it will be clear. As long as you use the forum and do not continue before understanding what is happening.

Let me know and I will definitely help you out.

Lee Reynolds Jr.
Lee Reynolds Jr.
5,160 Points

Ok. I started on the task again and I think I started it correctly here:

1. // TODO:csd - Instantiate a new Prompter object and prompt for the story template Prompter thing = new Prompter();

I'm not clear on prompting for the story part though. The variable story is already set in the code.

2. // TODO:csd - Use the prompter object to have it do the prompting, censoring and outputting. Call Prompter.run

Can I not just call the Prompter method from the Prompter.java file and it satisfy this?

3. // TODO:csd - This should really happen in the Prompter.run method, let's get these implementation details out of the main method String results = tmpl.render(fakeResults); System.out.printf("Your TreeStory:%n%n%s", results);

I assume that here I just move the two lines of code into the run method in Prompter.java file

4. // TODO:csd - Print out the results that were gathered here by rendering the template

Will this not be satisfied once I have moved the previous likes of code into the run method?

5. // TODO:csd - Prompt the user for the response to the phrase, make sure the word is censored, loop until you get a good response.

Now I'm starting to think that I don't really understand what it is asking for when I'm told to prompt the user. Is it not telling me that I need to call a System.in and take whatever input the user sends me and go from there with the execution of my code. I'm sure that I'm going to be using an if statement or a while loop on this part. I do believe that I'm lost the confidence that I can do this by the end of this challenge. I don't know if I'm just lacking some skills or if I'm just needing to step through it slower. I've tried breaking it down one piece at a time and I've taken maybe a week or two looking at the video before here and I understand what Craig is doing in the video. I, however, don't think I'm on the right road when the training wheels are off. I know that this is a very long post and I apologize for that and thank you if you made it through with the will to assist me in the end.