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

Code doesn't run but I can't find the error...java Multiple Format Strings

I couldn't find a solution to my problem and the code doesn't run....I always get the error message that I should follow the format ___name___really__pastTenseVerb___described above

so that's my code

String name = console.readLine("Larissa");
String pastTenseVerb = console.readLine("rocked");
console.printf(" %s  really %s this coding excercise", name, pastTenseVerb);

2 Answers

Hi there, https://docs.oracle.com/javase/8/docs/api/java/io/Console.html#readLine--

readLine() is a method that reads a single line from the console (usually the last one). U dont have to give this method any parameters.