Accessing NameValuePair
<pre><code>ArrayList&lt;NameValuePair&gt; postParameters = new ArrayList&lt;NameValuePair&gt;();  
        postParameters.add(new BasicNameValuePair("a", "yes"));
        postParameters.add(new BasicNameValuePair("b", "Value 2"));
        postParameters.add(new BasicNameValuePair("c", "Value 3"));
</code></pre>

<p>How would I access the last NameValuePair's value and input it into a String. I am currently trying:</p>

<pre><code> String tester = postParameters.get(3).getValue();
</code></pre>

<p>but my application crashes.</p>

<p>How do I get tester to become "Value 3"?</p>

<p>Thanks,</p>
