return multiple value from one method
<p>I have a class UserFunction and it have two method getAudioFunction and getPromptFunction with returning String value, my problem is that i want to return both value in one method
 how can i able to do that</p>

<p>UserFunction.java</p>

<pre><code> public class UserFunction{ 

        Map&lt;String,PromptBean&gt; promptObject=new HashMap&lt;String,PromptBean&gt;(); 
        Map&lt;String,AudioBean&gt; audioObject = new HashMap&lt;String,AudioBean&gt;();

        XmlReaderPrompt xrpObject=new XmlReaderPrompt();
        public String getAudioFunction(String audioTag,String langMode )
        {       
            Map&lt;String, AudioBean&gt; audioObject=xrpObject.load_audio(langMode);          
            AudioBean audioBean=(AudioBean)audioObject.get(audioTag);           
            String av=StringEscapeUtils.escapeXml(audioBean.getAudio());            
            return av;
        }
        public String getPromptFunction(String promptTag,String langMode )
        {           
            Map&lt;String, PromptBean&gt; promptObject=xrpObject.load(langMode);
            PromptBean promptBean= (PromptBean)promptObject.get(promptTag);             
            String pv=StringEscapeUtils.escapeXml(promptBean.getPrompt());          
            return pv;
        }

    }       
</code></pre>
