I am new to java programming and I am trying to program, however, I am getting an error in my If Else statement. Can someone please look into it and help me.
Please use else if (condn). In java if you use single else then it means none of the above conditions got satisfied but else is never followed by a condition unless you use else-if.
ie.
..
else if (value < mYellowStep)
return effort.WALKING;
}
simply use
..
else
return effort.WALKING
}