Scanner scan = new Scanner(System.in);
double cost = scan.nextDouble();
System.out.println(cost);
So i try writing 7.6 and it throws and exception in main. But when i write 7,6 it's OK and it prints 7.6
I'm using eclipse as my IDE