if (count == 0)
System.out.println ("No values were entered.");
else
{
average = (double)sum / count;
DecimalFormat fmt = new DecimalFormat ("0.###");
System.out.println ("The average is " + fmt.format(average));
}
}
}
請問一下,decimalformat fmt= new decimalformat("0.###");
System.out.prinltn("The average is "+fmt.format(avereage));
請段程設片段,可以解譯嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 163.25.118.164