Just return the appropriate string based upon the condition you already wrote:



public String whatSetting(int aNumber)
{
if ((aNumber > 0) && (aNumber < 5))
{
...