Learn that .nextDouble() works similar to cin >> x >> y