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

Exception in thread "main" in the Karaoke project

After I enter a new song into the song book, I get this error..

Exception in thread "main" java.util.UnknownFormatConversionException: Conversion = '% '
at java.util.Formatter.checkText(Formatter.java:2579)
at java.util.Formatter.parse(Formatter.java:2565)
at java.util.Formatter.format(Formatter.java:2501)
at java.io.PrintStream.format(PrintStream.java:970)
at java.io.PrintStream.printf(PrintStream.java:871)
at com.teamtreehouse.KaraokeMachine.run(KaraokeMachine.java:48)
at Karaoke.main(Karaoke.java:10)

What I believe to be happening is that the toString() method is not being applied on line 48 of KaraokeMachine.java. I've gone through line-by-line and can't find any typos or missing code. For now, I'm going to comment that line out so I can continue the lesson, but this will bug me until I fix it. Any ideas?

Allan Clark
Allan Clark
10,810 Points

could you provide the problem code?