Code example for ObjectInput

Methods: readDoublereadFloat

0
		out.writeFloat(altitude);
	} 
 
	public void readExternal(ObjectInput in) throws IOException,
			ClassNotFoundException { 
		this.latitude = in.readDouble();
		this.longitude = in.readDouble();
		this.altitude = in.readFloat();
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java