Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Basics Getting Started with Java Strings and Variables

aishah storey
aishah storey
2,472 Points

why is this error showing up? Exception in thread "main" java.util.Mi

Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
Exception in thread "main" java.util.MissingFormatArgumentException: Format specifier '%s'
at java.util.Formatter.format(Formatter.java:2519)
at java.util.Formatter.format(Formatter.java:2455)
at java.io.Console.format(Console.java:170)
at java.io.Console.printf(Console.java:209)
at Introductions.main(Introductions.java:9)

John Anselmo
John Anselmo
Courses Plus Student 2,281 Points

Please submit the code for the file you're getting this error on :D can't answer without it.

Right off the top of my head I would think you tried to use the %s formatter in System.out.println(""); which you will not be able to do. So try to use System.out.printf("") when using those % formatters.

aishah storey
aishah storey
2,472 Points

Thank you, I figured it out. A minor oversight on my part. It was the %s format.