Java ObjectInputStream readFloat() MethodThe readFloat() method of ObjectInputStream class is used to read a 32-bit float. SyntaxParameterNo parameter is passed. Returnsthe 32-bit float read. ThrowsEOFException - If the end of file is reached. IOException - If other I/O error has occurred. Example 1Output: 1.0 2.0 6.0 6.0 7.0 3.0 Example 2Output: 2.828125 0.0 2.84375 0.0 2.859375 0.0 3.1015625
Next TopicJava ObjectInputStream
|