To round up in Java, Math.ceil() and Math.round() methods are used. Math.ceil() returns a double type decimal while Math.round() returns an integer value.
確定! 回上一頁