Code example for DataOutput

Methods: writeDouble

0
                ", lrHeterozygous=" + lrHeterozygous +
                '}'; 
    } 
 
    public void write(DataOutput dataOutput) throws IOException {
        dataOutput.writeDouble(w0);
        dataOutput.writeDouble(mu2);
        dataOutput.writeDouble(lrHeterozygous);
    } 
 
    public void readFields(DataInput dataInput) throws IOException {
        w0 = dataInput.readDouble();
        mu2 = dataInput.readDouble();
        lrHeterozygous = dataInput.readDouble();
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java