You can use java.util.Formatter 's format() method to format double to 2 decimal places. This is similar to System.out.printf method. Here is an example: ...
確定! 回上一頁