title: How to dynamically pass arguments for a java function using variable length parameter
body: <p>Some function in java using variable length parameter. like</p>
  
  <pre><code>String java.lang.String.format(String format, Object... args)
  </code></pre>
  
  <p>How can dynamically pass parameter to this function? </p>
  
  <p>For example</p>
  
  <pre><code>String fillInString(String str, ArrayList&lt;String&gt; token){
      return String.format(str, token[0], token[1]....);   
  }
  </code></pre>