parseDouble

Using Double.parseDouble(input.nextLine()) instead of .nextDouble() and
then .next() to scan past the enter space.