Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: Java error "java.util.UnknownFormatConversionException"

  1. #1
    Junior Member
    Join Date
    Sep 2008
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java error "java.util.UnknownFormatConversionException"

    Why do I get this error?
     
    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


  2. #2
    Junior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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.
    Daniel @ [www.littletutorials.com]
    Language is froth on the surface of thought

  3. #3
    Forum old-timer
    Join Date
    Nov 2008
    Location
    Faversham, Kent, UK
    Posts
    472
    My Mood
    Mellow
    Thanks
    4
    Thanked 58 Times in 54 Posts

    Default Re: java.util.UnknownFormatConversionException error

    Post the code in Maclaurin1.java up to and including line 55.

  4. #4
    Junior Member
    Join Date
    Apr 2009
    Posts
    3
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: java.util.UnknownFormatConversionException error

    The solution for most of the Java related errors can be found at this site: Java errors and solutions.

  5. #5
    Senile Half-Wit Freaky Chris's Avatar
    Join Date
    Mar 2009
    Posts
    834
    My Mood
    Cynical
    Thanks
    7
    Thanked 105 Times in 90 Posts

    Default Re: java.util.UnknownFormatConversionException error

    Quote Originally Posted by gluk View Post
    The solution for most of the Java related errors can be found at this site: Java errors and solutions.
    Don't mean to sound harsh, but you're dragging old threads posting a link to one site.

    Chris

Similar Threads

  1. How to Sort an Array using the java.util.Arrays class
    By JavaPF in forum Java SE API Tutorials
    Replies: 2
    Last Post: May 17th, 2014, 01:16 AM
  2. Replies: 1
    Last Post: December 22nd, 2011, 09:55 AM
  3. How to use an ArrayList and what is its advantage over array?
    By JavaPF in forum Java SE API Tutorials
    Replies: 4
    Last Post: December 21st, 2011, 04:44 AM
  4. Replies: 3
    Last Post: April 26th, 2011, 02:51 AM
  5. Replies: 2
    Last Post: March 23rd, 2010, 01:38 AM