How to round down in Java?

To round down in Java, call the Math.floor method.
double aNumber = 4.8;

Math.floor(aNumber); // 4.0