Regarding Map having an value of type arraylist
<p>I have an method that return array list  in a class named abc, as shown below,</p>

<pre><code>public List&lt;abcinfo&gt; getobjectslists(String fileId)
    {
    //return array list
    }
</code></pre>

<p>Now I need to access this the contents return by this method in different class named bgh , so I need to invoke the method of first on the object   of class abc, I have tried in this way in the class bgh</p>

<pre><code>abc b1 = new abc ();

      b1.getobjectslist(tr);
</code></pre>

<p>now the query is that I have an map whose key is fght and i want its value should be of type array list , and that arraylist which is return by  above method  getobjectlist(tr) , please advise how to achieve this</p>

<pre><code>  Map&lt;String, Object&gt; atta = new HashMap&lt;String, Object&gt;();
  atta.put(fght, &lt;arraylist return by method getobjects(tr)&gt;);
</code></pre>

<p>please let me know one thing more if this method is in same class let say within bgh class itself and as a seprate method and I have to access this method within the same class inside another independent method named fghjl() then how could i put in map, Please advise Thanks inadvance .</p>
