Because this piece of code throws me an error:
package com.gmail.brunodiazmartin5;
import java.util.Scanner;
public class MiClase {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double d = sc.nextDouble(); //Excepcion si introduzco 452.65487
//java.util.InputMismatchException
double d2 = 452.65487; //Y esto que es el mismo valor no da error
}
}