我是 Java 新手。我得到一个错误。这些是我的简单代码:
public class AreaRect {
public static void main(String[] args) {
int height, width, area;
System.out.print("yukseklik?");
height = Keyboard.readInt();
System.out.print("genislik?");
width = Keyboard.readInt();
area = height * width;
System.out.print(area);
}
}
我得到这个错误:
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Keyboard cannot be resolved
Keyboard cannot be resolved
at AreaRect.main(AreaRect.java:8)
我在与 AreaRect.java 相同的目录中有一个 Keyboard.class 文件。请你告诉我我哪里错了吗?