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

Adrian Kasperek
Adrian Kasperek
510 Points

Bummer: java.util.FormatFlagsConversionMismatchException: Conversion = c, Flags = ()

What's wrong witch my code? I can'f find mistake.

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

1 Answer

KRIS NIKOLAISEN
KRIS NIKOLAISEN
54,289 Points

Just a typo. It should be %s instead of s%