title: How do you round a number to the closest integer in java without using the "round function" or "if and else statements"?
body: <p>I have to round a number to the nearest integer. So 4.3 would be rounded to 4 and 4.7 would be rounded to 5. Numbers that have decimals in the middle like 4.5 would be rounded to 5 as well. I have to do this rounding without using and "Math." functions or "if and else statements".</p>