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

Adam Bell
Adam Bell
1,176 Points

Output a sentence that takes both the noun and past tense verb using a single statement. It should look like this: name

String name = console.readLine("Adam");
String pastTenseVerb = console.readLine("hates");
console.printf("%s really %s this coding exercise.", name, pastTenseVerb);

I've tried so many different things. I don't know what to do.

Hi Adam,

I added markdown to help make your code more readable. Also, I copy / pasted your code into the challenge and it passes all three tasks. Are you still stuck on this?

3 Answers

Adam Bell
Adam Bell
1,176 Points

I fixed it Robert. All this time I was posting a lot more to the page than I should've.

Hey good to hear it's working!

Adam Bell
Adam Bell
1,176 Points

Yes, I am. I've been working on this question for 3 and a half hours.

I've now taken the Multiple Format Strings challenge, with your code, using Windows + Chrome and Linux + Firefox, and your code has worked for me every time.

Try again to copy the code above and if it continues to fail, the only help I can offer is to contact support. They're really nice and often fast with a response (within 24 hours usually).

In the meantime, you can skip challenges at any time. There are a couple gray arrow buttons that can navigate you to the previous or next lesson.

Hope this helps,

Cheers

Adam Bell
Adam Bell
1,176 Points

Okay, thanks Robert.