nextDouble

abstract fun nextDouble(): Double

Returns the double value of the next token, consuming it. If the nexttoken is a string, this method will attempt to parse it as a double using .

Throws

if the next token is not a literal value, or if the next literalvalue cannot be parsed as a double, or is non-finite.