Instead of using a dot, like: 1.2, try to input like this: 1,2.
More Related Contents:
- java.util.NoSuchElementException – Scanner reading user input
- Take a char input from the Scanner
- How to read multiple Integer values from a single line of input in Java?
- Java using scanner enter key pressed
- How to use .nextInt() and hasNextInt() in a while loop
- Scanner is skipping nextLine() after using next() or nextFoo()?
- Scanner is skipping nextLine() after using next() or nextFoo()?
- How to get the user input in Java?
- Using scanner.nextLine() [duplicate]
- Scanner double value – InputMismatchException
- java.util.NoSuchElementException: No line found
- How do I check if the user is pressing a key?
- Resource leak: ‘in’ is never closed
- Getting Keyboard Input
- Scanner method to get a char
- Exception in thread “main” java.util.NoSuchElementException
- Why does hasNextLine() never end?
- How can i handle it with scanner (java)?
- Extract Integer Part in String
- Hide input on command line
- how to take user input in Array using java?
- Scanner input validation in while loop
- Exception in thread “main” java.util.InputMismatchException
- hasNext() – when does it block and why?
- How to test for blank line with Java Scanner?
- Integer.parseInt(scanner.nextLine()) vs scanner.nextInt()
- Java Scanner class reading strings
- How to put a Scanner input into an array… for example a couple of numbers
- Command Line Pipe Input in Java
- Java’s Scanner vs String.split() vs StringTokenizer; which should I use?