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 2 of 2

Thread: Input Mismatch Exception

  1. #1
    Junior Member
    Join Date
    Jun 2020
    Posts
    11
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default Input Mismatch Exception

    Hello,

    What's the problem?

    Thanks


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Input Mismatch Exception

    It looks like the nextDouble method found something besides a double in its input.

    Note: It is not possible to test code that is shown in an image.


    Does your locale use . or , for decimals?
    If you don't understand my answer, don't ignore it, ask a question.

  3. The Following User Says Thank You to Norm For This Useful Post:

    shervan_360 (June 7th, 2020)

Similar Threads

  1. Illegal Argument Exception: input == null
    By Ecen in forum Exceptions
    Replies: 4
    Last Post: January 8th, 2014, 12:29 PM
  2. input mismatch exception
    By joeb234 in forum Exceptions
    Replies: 1
    Last Post: February 27th, 2013, 07:07 AM
  3. Exception error display with one input and not the other
    By worldchamp in forum What's Wrong With My Code?
    Replies: 6
    Last Post: December 4th, 2012, 01:45 PM
  4. user input mismatch problem
    By JavaN00b101 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 9th, 2012, 07:02 AM
  5. [SOLVED] allow a new input, dicarding the last mismatch input without terminating the program
    By voltaire in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 9th, 2010, 04:44 AM