import java.text.*;
public class number {
public static void main(String args[]) {
... double d = (double)counter1/all*100;
DecimalFormat df = new DecimalFormat("###,##0.00");
System.out.println(df.format(d));
}
}
public class number {
public static void main(String args[]) {
... double d = (double)counter1/all*100;
DecimalFormat df = new DecimalFormat("###,##0.00");
System.out.println(df.format(d));
}
}
问题解决了,谢谢
我想知道df.format(d)是什么类型?