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 Java Basics Using your New Tools Multiple Format Strings

what do i do??

sdfsf

Multiple.java
// I've imported java.io.Console for you.  It is stored in a variable called console for you.
String name = console.readLine("Luis");
String  pastTenseVerb = console.readLine("Enter a past tense verb:  ");
Alexander Køpke
Alexander Køpke
5,065 Points

You don't write what is wrong but I assume you need to write it out. console.printf("%s is %s etc etc", name, pastTenseVerb); I don't remember what the text said exactly but you can read that in the instructions. Good luck!

Lukas Baumgartner
Lukas Baumgartner
14,817 Points

In the first line, you have to prompt for the name of the user. You just write out Luis, i don't think anyone would know what to do with that... Try something like ("What's your name: "); Second line looks good.

After that, you can print out your String using the printf method. We use printf because you can use placeholders like %s for Strings, or %d for decimal integer values.