title: Java pass Map to pair of varargs
body: <p>Doing something like this with a normal array works:</p>
  
  <pre><code>public class TestVarArgs {
      public static void main(String[] args) {
          int[] array = new int[4];
          for (int i = 0; i &lt; array.length; i++) {
              System.out.println(i);
          }
          testThis(array);
      }
      public static void testThis(int... args) {
          for (int i = 0; i &lt; args.length; i++) {
              System.out.println(i);
          }
      }
  }
  </code></pre>
  
  <p>Now how can I do this with maps?</p>
  
  <p>I want to pass a map to a method that receives varargs of pairs.</p>
  
  <p>Passing a Map to varargs of Entry.Map does not work.</p>