if(metres >= 0) return true;
else return false;
Can I开发者_如何转开发 do this with a single calculation? (ignoring the ternary operator)
return (metres >= 0);
return metres >= 0;
if(metres >= 0) return true;
else return false;
Can I开发者_如何转开发 do this with a single calculation? (ignoring the ternary operator)
return (metres >= 0);
return metres >= 0;
精彩评论