💻ap computer science a review

NextDouble()

Written by the Fiveable Content Team • Last updated August 2025
Verified for the 2026 exam
Verified for the 2026 examWritten by the Fiveable Content Team • Last updated August 2025

Definition

The nextDouble() method is used in Java to read the next floating-point (decimal) value from the input source. It retrieves and returns the next double token as a double data type.

"NextDouble()" also found in:

2,589 studying →