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
UserFunction.java
public class UserFunction{ Map<String,PromptBean> promptObject=new HashMap<String,PromptBean>(); Map<String,AudioBean> audioObject = new HashMap<String,AudioBean>(); XmlReaderPrompt xrpObject=new XmlReaderPrompt(); public String getAudioFunction(String audioTag,String langMode ) { Map<String, AudioBean> 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<String, PromptBean> promptObject=xrpObject.load(langMode); PromptBean promptBean= (PromptBean)promptObject.get(promptTag); String pv=StringEscapeUtils.escapeXml(promptBean.getPrompt()); return pv; } }