Code example for DataOutputStream

Methods: writeBoolean, writeDouble, writeFloat