title: How make an array of org.apache.http.Header?
body: <p>I'm new in Java.</p>
  
  <p>I'm trying to do</p>
  
  <pre><code>import org.apache.http.Header;
  Header&lt;NameValuePair&gt; nvps = new HeaderList&lt;NameValuePair&gt;();
  //....adding some headers
  httppost.setHeaders(nvps);
  </code></pre>
  
  <p>but said</p>
  
  <pre><code>The type Header is not generic; it cannot be parameterized with arguments &lt;NameValuePair&gt;
  </code></pre>
  
  <p>how I can do it? </p>