首页 > 解决方案 > 为什么我的 ' . ' 在我的代码中无法识别?

问题描述

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' 没有被识别

标签: java

解决方案


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


推荐阅读