Here you go - you don't need to IF crap



public String whatSetting(int aNumber)
{
this.setting = aNumber;
switch(aNumber)
{
case 1: return "off";