-1
这是我不断收到错误:异常Java中的printf方法
整个库存的总金额是:在线程$异常“主要” java.util.MissingFormatArgumentException:格式说明“%.2f”
double total = 0.0;
for (int i = 0; i < 5; i++){
total = total + products[i].getInventoryValue();
}
System.out.printf ("Total value of entire inventory is:$%.2f" + total);
System.out.println();
Arrays.sort (products);
它完美的作品。谢谢! – Articuno 2015-02-17 23:54:28