wpf-steven edited 7 月前
无法使用Scanner类的话怎么获取控制台输入的参数呢?
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int numA = sc.nextInt();
int numB = sc.nextInt();
System.out.print(numA + numB);
}
}