Javaд??????????????
???????????? ???????[ 2015/11/6 11:16:14 ] ??????????????? ???????????
????????????????????????
package test;
import java.util.*;
import bean.Student;
public class Manager {
static List<Student> StudentList = new LinkedList<Student>();
public static void main(String[] agrs){
select(StudentList);
}
private static void select(List<Student> StudentList ){
System.out.println("***************");
System.out.println("*???????????????? *");
System.out.println("*1????????? *");
System.out.println("*2???????? *");
System.out.println("*3??????? *");
System.out.println("*4???????? *");
System.out.println("***************");
System.out.println("??????????????");
Scanner sc = new Scanner(System.in);
int choice = sc.nextInt();
switch(choice){
//???????
case 1:
System.out.print("?????????????????");
Scanner Sname = new Scanner(System.in);
String name = Sname.nextLine();
System.out.print("??????????????");
Scanner Ssex = new Scanner(System.in);
String sex = Ssex.nextLine();
System.out.print("???????????????");
Scanner SId = new Scanner(System.in);
String studentId = SId.nextLine();
System.out.print("???????????????");
Scanner Sgrade = new Scanner(System.in);
int grade = Sgrade.nextInt();
StudentList.add(new Student(name??studentId??sex??grade));
System.out.println("???????????????");
select(StudentList);
break;
//?????????
case 2:
System.out.print("??????????????????????");
Scanner Sid = new Scanner(System.in);
String SstudentId = Sid.nextLine();
boolean isfindDelete = false;
for (int i = 0; i < StudentList.size(); i++) {
if(SstudentId.equals(StudentList.get(i).getStudentId())){
System.out.println("???????????????????...");
StudentList.remove(i);
System.out.println("??????!!!");
isfindDelete =true;
}
}
if(!isfindDelete){
System.out.println("???????????");
}
select(StudentList);
break;
//?????????
case 3:
System.out.print("????????????????????????");
Scanner GId = new Scanner(System.in);
String GstudentId = GId.nextLine();
boolean isfindChange = false;
for (int j = 0; j < StudentList.size(); j++) {
if(GstudentId.equals(StudentList.get(j).getStudentId())){
System.out.println("???????????????????...");
System.out.println("????????"+StudentList.get(j).getGrade());
System.out.print("???????????????????");
Scanner Ggrade = new Scanner(System.in);
int grade2 = Ggrade.nextInt();
StudentList.get(j).setGrade(grade2);
System.out.println("?????!!!");
isfindChange =true;
}else{
}
}
if(!isfindChange){
System.out.println("???????????");
}
select(StudentList);
break;
//????????
case 4:
System.out.print("??????????????????????");
Scanner CId = new Scanner(System.in);
String CstudentId = CId.nextLine();
boolean isfindData = false;
for (int i = 0; i < StudentList.size(); i++) {
if(CstudentId.equals(StudentList.get(i).getStudentId())){
System.out.println("????:"+StudentList.get(i).getName());
System.out.println("???:"+StudentList.get(i).getSex());
System.out.println("???:"+StudentList.get(i).getStudentId());
System.out.println("???:"+StudentList.get(i).getGrade());
isfindData = true;
}
}
if(!isfindData){
System.out.println("???????????");
}
select(StudentList);
break;
default:
System.out.println("?????????????????????????");
break;
}
}
}
???????????????????е??????????????select???????????????????????????????????????????????????????????????????????????for??????????????????????
?????????????????????????????
??????????????????????????????????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Java???????????Щ???????????????Java????????????????Java?б???Map????????Java Web???????????????Java??????????????д?????Java????????7???????????????????????(java .net ?????)???Java??????????Python??????Java webdriver??λ????????′????е?????Java??д??????????????????Java???????????????JavaScript????????????Java?????????????????? Java???????10??????????????Java?м????????????????java???????ü???????????м???????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????