66
Java ObjectInputStream readDouble() Method
The readDouble() method of ObjectInputStream is used to read 64-bit double.
Syntax
Parameter
No parameter is passed.
Returns
The 64-bit double read.
Throws
EOFException – If the end of file is reached.
IOException – If other I/O error has occurred.
Example 1
Output:
106.0 97.0 118.0 97.0 84.0 112.0 111.0 105.0 110.0 116.0
Example 2
Output:
21.0 22.0 23.0 45.0 67.9 66.0
Next TopicJava ObjectInputStream