Java provides a better way to do the same thing with the "printf" method: double x = 12.345678; System.out.printf("Number is approximately %.2f", ...
確定! 回上一頁