Code example for DataOutputStream

Methods: writeBoolean, writeByte