java - return two results in one function call?
<p>I'm trying to do something like this:</p>

<pre><code> public void &lt;String,int&gt; getItem
 { 
   return &lt;"Jen",23&gt;;
 }
</code></pre>

<p>I know I can use a custom class, but how I would I return two results in one function call.</p>

<p>1 - Is the above template function possible in java, and how would by caller get part 1 of it and part 2 later.</p>

<p>2 - Can I do it using an associative array like in actionscript?</p>

<p>3 - Can I do it using a hashmap of some sort?</p>

<p>4 - What are other possible ways are there </p>

<p>I attempted all three ways, but one way or another syntax is hitting me. So if anyone can give clear examples</p>
