• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Return multiple varibles

Hi Guys,

I a need to create two ArrayLists that contain different sets of information. Is it possible to return more than one variable or should I return a holder with both variables within it?
 
A method can only return one object or primitive value (int etc.)
So as you say, the way to return multiple ArrayLists would be to use a 'holder' object.
 
Back
Top Bottom