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

Daiane Silva
Daiane Silva
5,668 Points

Having some trouble Finishing TreeStory

Hi guys, I'm having some trouble with the promptForStory, I'm still getting the "Did you prompt the user for the story (1)? I didn't see the first double underscored word prompted (2)." but I do just that, ask for a story before anything.

 try {
         Prompter prompt = new Prompter();
        String story = new String();
        try {
            story = prompt.promptStory();
        } catch (IOException e) {
            System.out.println("Couldn't read your story.");
            e.printStackTrace();
        }
        Template template = new Template(story);

        prompt.run(template);

and

     public String promptStory() throws IOException {
        System.out.println("Write your story with a few words with two underlines __word__ as the example:");
        return mReader.readLine();
    }
Daiane Silva
Daiane Silva
5,668 Points

You have to check if the story has some censored word too, and prompt again if they do.