Java error "java.util.UnknownFormatConversionException"
Why do I get this error?
Code :
Exception in thread "main" java.util.UnknownFormatConversionException: Conversio
n = '5'
at java.util.Formatter.checkText(Formatter.java:2502)
at java.util.Formatter.parse(Formatter.java:2484)
at java.util.Formatter.format(Formatter.java:2413)
at java.io.PrintStream.format(PrintStream.java:920)
at java.io.PrintStream.printf(PrintStream.java:821)
at Maclaurin1.main(Maclaurin1.java:55)
Press any key to continue . . .
All I want to do is convert a number from degrees to radians (Math.toRadians())and find the Math.sin and Math.cos of it
Re: java.util.UnknownFormatConversionException error
there is no need to post your question in all the forums. Better to ask the right question once than the wrong question many times. As I said to you in the other thread post a code excerpt - the part where you call printf.
Re: java.util.UnknownFormatConversionException error
Post the code in Maclaurin1.java up to and including line 55.
Re: java.util.UnknownFormatConversionException error
The solution for most of the Java related errors can be found at this site: Java errors and solutions.
Re: java.util.UnknownFormatConversionException error
Quote:
Originally Posted by
gluk
Don't mean to sound harsh, but you're dragging old threads posting a link to one site.
Chris