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

Nkosinolwazi Moyo
Nkosinolwazi Moyo
9,554 Points

Printf method on the console

// I have setup a java.io.Console object for you named console String firstName = " nkosi"; console.printf ("hello, my name is nkosi\n");

What's wrong with my coding .can't get through

Name.java
// I have setup a java.io.Console object for you named console
 String firstName = " nkosi"; 
console.printf ("hello, my name is nkosi\n");  

2 Answers

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 49,909 Points

Task 2 wants you to print the string "<YOUR NAME> can code in Java!"