In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article will explain in detail how to implement the student information management system in java. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
The details are as follows
/ * Student information management system to implement student information: * add int [] a=new int [9] * Delete * find * change * / import java.util.Scanner;// import java input stream import java.lang.*; import java.io.*; class Student {private static Student [] s=new Student [2]; int information 0; private String name; private int num; private String classAge; public void judge () throws IOException {int i; char ch; String str Scanner In=new Scanner (System.in); if (incorrectly loaded 0) {System.out.print ("you haven't enrolled any students yet, whether or not you have enrolled (YUnip N):"); str=In.next (); ch=str.charAt (0); while (incorrectly typed, please re-enter:) Str=In.next (); ch=str.charAt (0);} if (ch=='Y' | | ch=='y') {this.add ();} if (ch=='N' | | ch=='n') {this.menu ();} public void menu () throws IOException// defines the menu function {int _ this.menu () throws IOException// / defines the switch statement variable Scanner in=new Scanner (System.in) / / instantiate the input stream object System.out.println ("* Student Information Management system function Table *"); System.out.println ("* 1. Add * "); System.out.println (" * 2. Display * "); System.out.println (" * 3. Modify * "); System.out.println (" * 4. Delete * "); System.out.println (" * 5. View * "); System.out.println (" * 0. Exit * "); System.out.println (" * * "); System.out.print (" Please select (0,5): "); a=in.nextInt (); while (a5) {System.out.print (" input out of range, please re-enter: "); a=in.nextInt () } switch (a) {case 1:this.add (); break; case 2:this.show (); break; case 3:this.modif (); break; case 4:this.delete (); break; case 5:this.look (); break; case 0:System.exit (0); break;}} public void add () throws IOException// defines the increment function {String str,str1,str2; int iMagin num1 Char ch,ch2; FileWriter fw=new FileWriter ("F://javaFile//student.txt", true); fw.write ("list of student information entered\ r\ n\ r\ nStudent ID class\ r\ n"); Scanner In=new Scanner (System.in); while (student ID number 1) {System.out.print ("Please enter student number:"); num1=In.nextInt (); for (item0transferi)
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.