Consider the following method.
public String inRangeMessage(int value)
{
if (value < 0 || value > 100)
return "Not in range";
else
return "In range";
}
Consider the following code segments that could be used to replace the body of inRangeMessage.
I)
if (value < 0)
{
if (value > 100)
return "Not in range";
else
return "In range";
}
else
return "In range";
II)
if (value < 0)
return "Not in range";
else if (value > 100)
return "Not in range";
else
return "In range";
III)
if (value >= 0)
return "In range";
else if (value <= 100)
return "In range";
else
return "Not in range";
Which of the replacements will have the same behavior as the original version of inRangeMessage?
A) I only
B) II only
C) III only
D) I and III
E) II and III