没有合适的资源?快使用搜索试试~ 我知道了~
用Java实现的学生信息管理系统,可以对学生信息进行增删查改和排序。
资源推荐
资源详情
资源评论
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![cpp](https://img-home.csdnimg.cn/images/20210720083646.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![C](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
package xueji;
import java.util.*;
public class system
{
public static void main(String[] args)
{
String name[]=new String [100];
int age[]=new int [100];
String sex[]=new String [100];
int score[]=new int [100];
int grade[]=new int [100];
int num=0;
String choice=new String();
System.out.println("学生管理系统");
System.out.println("增加学生信息,请输入1");
System.out.println("删除学生信息,请输入2");
System.out.println("查询学生信息,请输入3");
System.out.println("修改学生信息,请输入4");
System.out.println("对学生成绩排序,请输入5");
System.out.println("显示全部学生信息,请输入6");
Scanner in = new Scanner(System.in);
choice=in.next();
while(choice.equals("1")||choice.equals("2")||choice.equals("3")||choice.equals("4")||choice.equals("5")||choice.equals("6"))
{
if(choice.equals("1"))
{
System.out.println("请输入学生的姓名:");
import java.util.*;
public class system
{
public static void main(String[] args)
{
String name[]=new String [100];
int age[]=new int [100];
String sex[]=new String [100];
int score[]=new int [100];
int grade[]=new int [100];
int num=0;
String choice=new String();
System.out.println("学生管理系统");
System.out.println("增加学生信息,请输入1");
System.out.println("删除学生信息,请输入2");
System.out.println("查询学生信息,请输入3");
System.out.println("修改学生信息,请输入4");
System.out.println("对学生成绩排序,请输入5");
System.out.println("显示全部学生信息,请输入6");
Scanner in = new Scanner(System.in);
choice=in.next();
while(choice.equals("1")||choice.equals("2")||choice.equals("3")||choice.equals("4")||choice.equals("5")||choice.equals("6"))
{
if(choice.equals("1"))
{
System.out.println("请输入学生的姓名:");
name[num]=in.next();
System.out.println("请输入学生的年龄:");
age[num]=in.nextInt();
System.out.println("请输入学生的性别:");
sex[num]=in.next();
System.out.println("请输入学生的成绩:");
score[num]=in.nextInt();
System.out.println("请输入学生的年级:");
grade[num]=in.nextInt();
num++;
System.out.println("该学生的信息添加成功!");
}
if(choice.equals("2"))
{
int i,j,flag=0;
System.out.println("请输入学生的姓名:");
String s1=in.next();
for(i=0;i<num;i++)
{
if(name[i].equals(s1))
{
flag=1;
num--;
for(j=i;j<num;j++)
{
name[i]=name[i+1];
System.out.println("请输入学生的年龄:");
age[num]=in.nextInt();
System.out.println("请输入学生的性别:");
sex[num]=in.next();
System.out.println("请输入学生的成绩:");
score[num]=in.nextInt();
System.out.println("请输入学生的年级:");
grade[num]=in.nextInt();
num++;
System.out.println("该学生的信息添加成功!");
}
if(choice.equals("2"))
{
int i,j,flag=0;
System.out.println("请输入学生的姓名:");
String s1=in.next();
for(i=0;i<num;i++)
{
if(name[i].equals(s1))
{
flag=1;
num--;
for(j=i;j<num;j++)
{
name[i]=name[i+1];
剩余5页未读,继续阅读
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
sherohyw
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)