public class NumberTester
{
public static void main (String [] agrs)
{
int numberOfPhones, storagePerPhone, totalStorage;
numberOfPhones =20; storagePerPhone =32;
totalStorage = numberOfPhones * storagePerPhone;
System.out.printIn("If you have");
System.out.printIn(storagePerPhone + " storage per phone and");
System.out.printIn(numberOfPhones + " phones, then");
System.out.printIn("the total amount of storage is " +totalStorage);
}
}
'System.out.printIn' 在我编译代码时没有被识别
答案 0 :(得分:2)
字体欺骗了你它是System.out.println
而不是System.out.printIn
它是l
(小L)而不是I
(大写i)。两者看起来很相似。