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

???What am I doing wrong here.

It's not complying, I tried putting my name than your name, its still not working.

Name.java
// I have setup a java.io.Console object for you named console
String firstName="yourName";
console.printf("yourName");
console.printf("canCodeInJava");

1 Answer

You need to use String formatter.

console.printf("%s can code in Java!", firstName);

This is why we use printf. To format the output