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

Cherluk Sumdin
Cherluk Sumdin
94 Points

got error

this is my code.

https://w.trhou.se/mksj5tk1q7

I do not know what i do wrong. when I tried to compile, I got this error

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 TreeStory.main(TreeStory.java:16)

1 Answer

It does not cause an error after I compiled the code, nor does it do anything unexpected after I ran it :confused: