farai ted mandoreba12,855 Points
Now replace <YOUR NAME> in the console.printf expression with the firstName variable using the string formatter.
i cant to get to give the required answer, what it that is required or considered correct, i have followed what the video tutorial teaches but its all wrong i'm stuck
// I have setup a java.io.Console object for you named console String firstName = "farai"; console.printf ("%s , can code in java\n"); console.printf ("%s ,can code in java", firstName);
there is just string formatting problem...... thats how i did...
String firstName = "Godfrey"; console.printf("%s can code in Java!", firstName);
Tabatha Trahan17,662 Points
It looks like if you get rid of your first printf function you should be good. It has the string formatter, but no string to populate it at the end of the expression. Your second printf looks like it is constructed correctly.