This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes java.util.UnknownFormatConversionException: Conversion = 'i' error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java.util.UnknownFormatConversionException: Conversion = Watch "java.util.UnknownFormatConversionException: Conversion = New topic

java.util.UnknownFormatConversionException: Conversion = 'i' error

Nick Petas
Ranch Hand

Joined: Jan 31, 2007
Posts: 40
Here is the source code :

The code that produces the error of the topic is bold.
Thank you.
pete stein

Joined: Feb 23, 2007
Posts: 1561
Your problem is with the percent symbol, "%", as the printf method thinks that it's a format specifier. To use it literally as a percent symbol, you'll need to use two of them in a row. So change this:

to this:
fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11861

The bold tag does not work inside the 'code' tags. Referring to the specific line number where the error is would be the best way.

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: java.util.UnknownFormatConversionException: Conversion = 'i' error
It's not a secret anymore!