sorry my mistake, remove the else at the end, so the return is guaranteed.
ie.
if ((aNumber > 0) && (aNumber < 5))
{
... set diff. settings based on 1 to 4
..etc...
Type: Posts; User: JavaDaveUK
sorry my mistake, remove the else at the end, so the return is guaranteed.
ie.
if ((aNumber > 0) && (aNumber < 5))
{
... set diff. settings based on 1 to 4
..etc...
are you sure you have the else from the first if, not the if that results in the high setting.
i.e.
if ((aNumber > 0) && (aNumber < 5))
{
... set diff. settings based on 1 to 4...
How about this!
public String whatSetting(int aNumber)
{
if ((aNumber > 0) && (aNumber < 5))
{
this.setting = aNumber;
if...