Format.print();这个语句使用的问题.
public class Daikuan
{
public static void main(String[] args)
{
double prin;
double yinterests;
int years;
prin=Console.readDouble("your load mount:");
yinterests=Console.readDouble("the years interests(ues 7.5 for 7.5%):");
years=Console.readInt("the number of years:");
double y;
for(y=yinterests-0.01;y<yinterests+0.01;y+=0.00125)
{
double monthlyinterests=y/12;
double payment=prin*monthlyinterests/(1-(Math.pow(1/(1+monthlyinterests),years*12)));
Format.print(System.out,"with rate of 6.3%",100*y);
Format.print(System.out,"%%,your monthly payment is $%10.2f\n",payment);
}
}
}
在这段程序进行编译的时候提示 can not resolve symbol"Format"
请问是什么原因?