java 四舍五入 import java.lang.Math; public static void main(String[] args) { System.out.println("Math.round(11.5)="+Math.round(11.5)); System.out.println("Math.round(-11.5)="+Math.round(-11.5)); }