Java Java Basics Using your New Tools Multiple Format Strings

Enyang Mercy
Enyang Mercy
Pro Student 2,339 Points

output that takes both name and pastTenseverb Bummer! follow the format `__name__ real

console.printf("%s worked %s", name , really ,pastTenseVerb); What is required for this code?
// I've imported for you.  It is stored in a variable called console for you.
String name = console.readLine("Mercy:  ");
String pastTenseVerb = console.readLine("worked:  ");
console.printf("%s worked %s", name, pastTenseVerb);

1 Answer

Nir Tal
Nir Tal
18,858 Points

the problem is that your last line does not refer to the instruction the sentence should be:

console.printf("%s really %s this coding exercise." , name, pastTenseVerb);