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.getSe lectedIndex();
switch (tabIndex)
{
case BulletinConstan ts.INPUT_TAB_IN DEX:
_bulletinItemTa b.init(null);
x = true;
y = false;
Log.enter(getCl ass(),"Tab moved to Input");
break;
case BulletinConstan ts.RELAY_TAB_IN DEX:
_relayTabAdapte r.setLogger(get Logger());
_bulletinRelayT ab.init();
Log.enter(getCl ass(),"Tab moved to Relay");
y = true;
x = false;
break;
default:
break;
}
return x;// I want to return both x and y;
}
I want to return both x and y. How can I do that?
public boolean populateTab()
{
int tabIndex = _tabPanel.getSe lectedIndex();
switch (tabIndex)
{
case BulletinConstan ts.INPUT_TAB_IN DEX:
_bulletinItemTa b.init(null);
x = true;
y = false;
Log.enter(getCl ass(),"Tab moved to Input");
break;
case BulletinConstan ts.RELAY_TAB_IN DEX:
_relayTabAdapte r.setLogger(get Logger());
_bulletinRelayT ab.init();
Log.enter(getCl ass(),"Tab moved to Relay");
y = true;
x = false;
break;
default:
break;
}
return x;// I want to return both x and y;
}
Comment