title: Populate array with null values
body: <p>Maybe that's simple question.
  But, I wonder to know why we can't populate array or collection with null values?
  Please look such simple example:</p>
  
  <pre><code>public static void main(String[] args) {
  
     Map&lt;String, Object&gt; map = new HashMap&lt;&gt;();
     map.put("first",null);
     map.put("first1",new BigDecimal(1.5));
     map.put("first2",new BigDecimal(2.5));
     map.put("first3",new BigDecimal(3.5));
  
  
     String[]array1 = new String[map.values().size()];
     Object[]array2 = new Object[map.values().size()];
  
     int counter = 0;
  
     for(Map.Entry&lt;String,Object&gt; entry: map.entrySet()){
  
         String header = entry.getKey();
         Object value = entry.getValue();
  
         array1[counter] = header;
         array2[counter] = value;
  
         counter++;
  
     }
  }
  </code></pre>
  
  <p>I would be glad to listen your purposes.</p>