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

Yusif Maniyev
Yusif Maniyev
93 Points

String firstName = "Yuska"; console.printf("Yuska"); what is wrong

// I have setup a java.io.Console object for you named console String firstName = "Yuska"; console.printf("Yuska"); WHAT IS WRONG

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

1 Answer

Steven Parker
Steven Parker
163,107 Points

The challenge instructions say: Call the printf method on the console object and make it write out "<YOUR NAME> can code in Java!"

But the code above is printing "Yuska" instead of the string the instructions asked for.