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

firstName problem what is wrong??

can you correct me?

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

1 Answer

Jaguar Hunter
PRO
Jaguar Hunter
Pro Student 5,384 Points

You don't need to create Console object , its been imported for you already just try this

String firstName = "yourName";