How to send post parameters dynamically (or in loop) in OKHTTP 3.x in android? : <p>I am using OKHTTP 3.x version. I want to post multiple  parameters and would like to add the params in a loop.
I know that in version 2.x , I can use FormEncodingBuilder and add params to it in loop and then from it create a request body.
But In 3.x , the class has been removed.</p>

<p>Here is my current code :</p>

<pre><code>RequestBody formBody = new FormBody.Builder()
            .add("Param1", value1)
            .add("Param2", value2)
            .build();
Request request = new Request.Builder()
            .url("url")
            .post(formBody)
            .build();
</code></pre>

<p>Now I want to add 5 params but in a loop i.e create request body by building formbody in a loop.
Like I wrote above, I know how to do it in OKHTTP version 2.x but I am using version  3.x.</p>

<p>Any help or guidance is appreciated.</p>

<p>Thanks in Advance</p>
