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
Bill Wolfe
8,428 PointsTODO states that Prompter.run should be called. Doesn't this indicate that run should be called on the class ?
In two different TODO:'s it states that we should call Prompter.run, which would indicate that run should be static and called on the class Prompter and not on an instance.
I'm trying to do this challenge without peeking at the solutions, but while checking to see if anybody else asked this question, I did notice that some of the solutions are calling run on an instance.
Just wondering if I am reading Prompter.run too literally and overthinking this. I think I'm also confused by the fact that we are instantiating a Prompter object in the first TODO.
My question is probably revealing my ignorance but any help would be appreciated. Thanks
Java #Teamwork #Static Methods
Bill Wolfe
8,428 PointsDo you know how to add tags. I searched the Markdown cheatsheet the Treehouse Forums and the Daring Fireball site. But other than the JAVA drop down at the end of the post, I can't find the way to add the tags. I tried hashtags but they just seem to add emph in the document. I'm sure I'm overlooking something easy.
Thanks for any help.
1 Answer
Craig Dennis
Treehouse TeacherIt is expecting an instance. Good job not cheating ;)
Good question too! I've made a TODO to clean up those TODOs.
Good luck, you got this!
Bill Wolfe
8,428 PointsThanks Craig, that helps a bunch. Love your classes and have learned a bunch thanks.
Simon Coates
28,695 PointsSimon Coates
28,695 Pointsyour post doesn't seem to be attached to a video or challenge. Some indication (eg. a url) would help people come up with a meaningful response to your question.