Code example for DataOutput

Methods: writeDouble, writeLong

0
		r = in.readDouble();
	} 
 
	@Override 
	public void write(DataOutput out) throws IOException {
		out.writeLong(p);
		out.writeDouble(s);
		out.writeDouble(r);
	} 
 
	public void set(long p, double s, double r){
		this.p = p;
		this.s = s;
		this.r = r;
	} 
	 
	public long getP() { 
		return p;
	} 
 
	public void setP(long p) {