我是Java新手。如何製作一個org.apache.http.Header數組?
我試圖做
import org.apache.http.Header;
Header<NameValuePair> nvps = new HeaderList<NameValuePair>();
//....adding some headers
httppost.setHeaders(nvps);
,但表示
The type Header is not generic; it cannot be parameterized with arguments <NameValuePair>
我該怎麼辦呢?
馬克是正確的? – Sunkas 2015-06-18 14:44:20