为什么我的 a ' . ' 在我的代码中无法识别?

时间:2021-02-28 07:38:26

标签: java

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' 在我编译代码时没有被识别

1 个答案:

答案 0 :(得分:2)

字体欺骗了你它是System.out.println而不是System.out.printIn 它是l(小L)而不是I(大写i)。两者看起来很相似。