import java.io.*;
public class Season
{
static InputStreamReader inreader=new InputStreamReader(System.in);
public static BufferedReader breader=new BufferedReader(inreader);
public static void main(String args[]) throws Exception
{
int month;
System.out.println("输入月份,以换行结束!");
int month=ReadData.readInt();
switch(month)
{
case 3:case 4:case 5:
System.out.println("Month " +month+ " is 春季.");
break;
case 6:case 7:case 8:
System.out.println("Month " +month+ " is 夏季.");
break;
case 9:case 10:case 11:
System.out.println("Monthe " +month+ " is 秋季.");
break;
case 12:case 1:case 2:
System.out.println("Month " +month+ " is 冬季.");
break;
default:System.out.println("输入非法!");
}
}
}
以上是我写的程序,编译显示"已在main()中定义month":int month=ReadData.readInt();
我不知道该怎么改,请求哥哥姐姐帮我改改!!谢谢(*^_^*)