Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize the Student Information Management system with java

2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

这篇文章主要为大家展示了"java怎么样实现学生信息管理系统",内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下"java怎么样实现学生信息管理系统"这篇文章吧。

JAVA简单写学生信息管理系统,实现学生信息的输入、查询、修改、删除操作

package Week;import jdk.internal.util.xml.impl.Input;import java.util.HashSet;import java.util.Scanner;public class StudentMs { Scanner sc = new Scanner(System.in); public int getID() { return ID; } public String getName() { return name; } public String getClassnum() { return classnum; } public int getTelephone() { return telephone; } public void setID(int ID) { this.ID = ID; } public void setName(String name) { this.name = name; } public void setClassnum(String classnum) { this.classnum = classnum; } public void setTelephone(int telephone) { this.telephone = telephone; } private int ID; private String name; private String classnum; private int telephone; /* public StudentMs(int ID, String name, String classnum, String telephone) { this.ID = ID; this.name = name; this.classnum = classnum; this.telephone = telephone; }*/ public void add(StudentMs a){ int ID1; String name2; String classnum1; int telephone1; System.out.println("请输入你要添加的学生信息"); System.out.println("请输出学生学号"); ID1 =sc.nextInt(); a.setID(ID1); System.out.println("请输出学生姓名"); sc.nextLine(); name2=sc.nextLine(); a.setName(name2); System.out.println("请输出学生班级"); classnum1=sc.nextLine(); a.setClassnum(classnum1); System.out.println("请输出学生电话号码"); telephone1=sc.nextInt(); a.setTelephone(telephone1); } public int find(String[][] a) { System.out.println("请输入你要查询学生的学号"); int n=-1; int id = sc.nextInt(); for(int i=0;i

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report