在写Java代码的时候,一定是Main类
注意,是Main,注意大小写,(下面代码的具体内容不重要)
以后还有别的注意点,我会在下面盖楼的
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int number1 = scan.nextInt();
int number2 = scan.nextInt();
System.out.println( number1 * number2);
}
}
2万+

被折叠的 条评论
为什么被折叠?



