这是代码,运行时错误在哪里?我尝试并试图找到它,但我就是找不到,有没有其他人看到这些错误可能在代码中的什么位置?
public class HasErrors
{
public static void main(String [] args)
{
int x = 0;
int y = 0;
Scanner in = new Scanner("System.in");
x = in.readInt();
System.out.print("Please enter another integer: ");
x = in.readInt();
System.out.println("The sum is " + x + y);
}
}