在Eclipse编译器下,输入了 import java.util.Scanner还是不能使用类Scanner
importjava.util.Scanner;publicclassTest{publicstaticvoidmain(String[]args){Scannerrea...
import java.util.Scanner;
public class Test{
public static void main(String[] args)
{
Scanner reader = nex Scanner(System.in);
int a = reader.nextInt();
int b = reader.nextInt();
System.out.println(a+b);
}
} 展开
public class Test{
public static void main(String[] args)
{
Scanner reader = nex Scanner(System.in);
int a = reader.nextInt();
int b = reader.nextInt();
System.out.println(a+b);
}
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询