Code example for ObjectInput

Methods: readFloat

0
    } 
 
    @Override 
    public void readExternal(ObjectInput in) throws IOException,ClassNotFoundException {
        // Read in the server properties from the client representation. 
        amount = new BigDecimal( in.readFloat());
 
    } 
 
    @Override 
    public void writeExternal(ObjectOutput out) throws IOException {
        // Write out the client properties from the server representation. 
        out.writeFloat(amount.floatValue());
        // out.writeObject(currency); 
    } 
     
} 
Connect your IDE to all the code out there  Get Codota for Java