title: How to convert equivalent GO code to Java code?
body: <p>I'm making an RPC call using a Java library, I'm taking refrence from a GO code which I need to convert to java. I fairly know nothing about the go syntax. Can anyone help me describe the following code :</p>
  
  <pre><code>Params: []interface{}{
              from, // first parameter is address to send from (where the ZEC comes from)
              []interface{}{
                  map[string]interface{}{
                      "amount":  msgval,
                      "address": to,
                      "memo":    hex.EncodeToString([]byte(msg)),
                  },
              },
  </code></pre>
  
  <p>Below is how, I'm trying the equivalent Java code :</p>
  
  <pre><code>Map&lt;String,Object&gt; params = new HashMap&lt;&gt;();
        params.put( "from", fromAddress );
        params.put( "amount", 1.0000 );
        params.put( "address", toAddress );
        params.put( "memo", hexMessage );
  </code></pre>
  
  <p>Below is the argument description :</p>
  
  <p>This is an Asynchronous RPC call. Send funds from an
  address to multiple outputs. The address can be a
  taddr or a zaddr. Amounts is a list containing key/value
  pairs corresponding to the addresses and amount to pay.
  Each output address can be in taddr or zaddr format.
  When sending to a zaddr, you also have the option of
  of attaching a memo in hexadecimal format.</p>
  
  <p>Is this correct?</p>