Java Java Basics Getting Started with Java Strings, Variables, and Formatting

pranshu sharma
pranshu sharma
52 Points

Check the spelling of your argument to the printf method. Make sure it is printing out what the instructions are asking

This error is popping up

Name.java
String firstName = "pranshu";
console.printf("%s", firstName);

1 Answer

Steven Parker
Steven Parker
195,574 Points

This is what I was pointing out in my answer to your other question.

The instructions ask you to "make it write out "<YOUR NAME> can code in Java!"", so instead of just your name you will need to build a string that includes your name along with the other words and punctuation asked for.

So basically, your output still needs to have " can code in Java!".