我最近在我的 mac 上安装了 eclipse,我在课堂上玩弄它。我在第一行打印时不断出现错误的构造错误,在我的主要声明中出现一堆语法错误。我不太确定这是怎么回事。
import static java.lang.System.out;
import java.util.Scanner;
public static void main (string args[])
{
double a, b, c, d, e, f;
Scanner input = new Scanner();
out.println(" Please enter the first number: ");
a = imput.nextDouble;
out.println("Please enter the second number: ");
b = imput.nextDouble;
out.println ("Please enter the third number : ");
c = imput.nextDouble;
out.println ("Please enter in fourth number : ");
d = imput.nextDouble;
out.println(" Please enter in fifth number : ");
e = imput.nextDouble;
double sum = a + b + c + d + e;
}
这还没有完成,但据我所知,我的所有变量都有值,并且一切都按应有的方式关闭。