面向过程的学生管理系统(不用数据库和文件)
不使用数据库和IO流,编写学生管理系统,练习数组和循环的操作
import java.util.Scanner;
public class StuInf
{
public static void main(String[] args)
{
/*
3.实现学生管理(增加删除查询修改二维数组)
String[][] students = new String[][];
学生简单信息:姓名、年龄、学校
*/
String[][] students=new String[100][4];
String[] s1={"S001","张三1","25","组长1"};
String[] s2={"S002","张三2","26","组长2"};
String[] s3={"S003","张三3","27","组长3"};
String[] s4={"S004","张三4","28","组长4"};
students[0]=s1;
students[1]=s2;
students[2]=s3;
students[3]=s4;
int studentCount=4;
System.out.println("\n\n\t\t欢迎使用学生管理系统");
System.out.println("* * * * * * * * * * * * * * * * * * ** * * * * * * * *"); System.out.println("\n\n\t\t 1.登入系统\n");
System.out.println("\n\n\t\t 2.退出\n\n");
System.out.println("* * * * * * * * * * * * * * * * * * ** * * * * * * * *\n");
System.out.print("请输入数值:");
boolean flag=true;
while(flag)
{
Scanner input=new Scanner(System.in);
int choice=input.nextInt();
switch(choice)
{
case 1:
System.out.println("请选择登入!");
for(int i=1;i<=3;i++)
{
System.out.print("请输入用户名:");


