title: Adding arrays to Hashmap<String,Object>?
body: <p>I have a Hashmap that accepts strings and objects, I want to add a String[] and Object[] to the hashmap and it does not appear to add them as objects.</p>
  
  <p>I have been out of the Java world for 11 years, so apologies if this is smashing a square peg into a round hole, I just expect when passing an object in the form of the arrays, that it would work.</p>
  
  <p>I will add that the same code (obviously slightly different) works in C# passing the arrays into a Dictionary of String and Object, hence the expectation that it would be similar in Java.</p>
  
  <p>I have tried to declare the arrays outside of the put command and that's as far as I have got testing.</p>
  
  <pre><code>Map&lt;String, Object&gt; params = new HashMap&lt;&gt;();
  params.put("sl", new String[]{"AZN"});
  params.put("dType", "trade");
  // year - the year minus 1900
  // month - 0 to 11
  params.put("startDate", new Date(2018-1900, 11, 20));
  params.put("endDate", new Date(2018-1900, 11, 20));
  params.put("tZ", "Eur");
  params.put("ac", "equity");
  params.put("af", new Object[]{"=", "price", 6031} );
  </code></pre>
  
  <p>I would expect that the params would have a string array called sl and an object array af with 3 entities... sl and af are currently blank</p>
  
  <p>when I say its blank I see:</p>
  
  <pre><code>params[0] sl &gt;
  params[1] dType &gt; trade
  params[2] startDate &gt; 2018-11-20
  params[3] endDate &gt; 2018-11-20
  params[4] tZ &gt; Eur
  params[5] ac &gt; equity
  params[6] af &gt;
  </code></pre>
  
  <p>As can be seen above this is the output I can see.</p>