代码如下:
import java.util.Scanner;
/**
* 添加模块
* @author Administrator
*
*/
public class AddStudent {
static Scanner scan=new Scanner(System.in);
void AddStu() {
System.out.println("输入学生编号:");
int id=scan.nextInt();
System.out.println("输入学生姓名:");
String name=scan.nextLine();
System.out.println("输入学生性别:");
String sex=scan.nextLine();
System.out.println("输入入学日期:");
String enter=scan.nextLine();
System.out.println("输入生日:");
int birthday=scan.nextInt();
save(id,name,sex,enter,birthday);
scan.close();
}
private void save(int id, String name, String sex, String enter,
int birthday) {
}
}