How can i return 2 values in below code:
I want to return both x and y. How can I do that?
public boolean populateTab()
{
int tabIndex = _tabPanel.getSelectedIndex();
switch (tabIndex)
{
case BulletinConstants.INPUT_TAB_INDEX:
_bulletinItemTab.init(null);
x = true;
y = false;
Log.enter(getClass(),"Tab moved to Input");
break;
case BulletinConstants.RELAY_TAB_INDEX:
_relayTabAdapter.setLogger(getLogger());
_bulletinRelayTab.init();
Log.enter(getClass(),"Tab moved to Relay");
y = true;
x = false;
break;
default:
break;
}
return x;// I want to return both x and y;
}