import java.util.Scanner;
public class Main {
public static void main(String[] args) {
System.out.println("Enter a number between 0 and 1000");
Scanner number =new Scanner(System.in);
int rc= number.nextInt();
if(0
第七行开始时理解问题,rc变量用number书写,未搞懂Scanner的真正用法,误将number理解为读入的变量。这个是第一个程序所犯的错误。



