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

Jareth Vasquez
Jareth Vasquez
1,744 Points

please help its not working and i dont know these flags yet (java)

// I have setup a java.io.Console object for you named console
String firstName = "jareth";
console.printf("s% can code in Java", firstName);
Name.java
// I have setup a java.io.Console object for you named console
String firstName = "jareth";
console.printf("s% can code in Java", firstName);

1 Answer

KRIS NIKOLAISEN
KRIS NIKOLAISEN
54,287 Points

You have two issues:

1) The % goes before the s: %s instead of s%

2) There is an exclamation point after Java