1.A+B Problem

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int a = s.nextInt(); int b = s.nextInt(); System.out.print(a + b); } }
第一次Java刷题需要注意:
1.类名一定要为:Main
2.上传代码不要包括包命

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int a = s.nextInt(); int b = s.nextInt(); System.out.print(a + b); } }
第一次Java刷题需要注意:
1.类名一定要为:Main
2.上传代码不要包括包命