资源简介

不用连接数据库,直接用数组做成一个简单的学生管理系统,希望能对初学者能有一点点帮助!

资源截图

代码片段和文件信息

package com.asiasoft.studentmanager;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;

class MyComparator implements Comparator{  
    public int compare(object o1object o2) {  
       Student s1=(Student)o1;  
       Student s2=(Student)o2;    
       int i1=Integer.parseInt(s1.getCode());
       int i2=Integer.parseInt(s2.getCode());
       if(i1>i2)  
        return 1;  
       else  
        return 0;  
       }  
}  

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         301  2011-11-18 11:24  StudentManager_1.1_pengxiaojiang\.classpath
     文件         408  2011-11-21 12:20  StudentManager_1.1_pengxiaojiang\.project
     文件         629  2011-11-18 11:24  StudentManager_1.1_pengxiaojiang\.settings\org.eclipse.jdt.core.prefs
     文件         873  2011-11-21 12:20  StudentManager_1.1_pengxiaojiang\bin\com\asiasoft\studentmanager\MyComparator.class
     文件        1407  2011-11-21 12:20  StudentManager_1.1_pengxiaojiang\bin\com\asiasoft\studentmanager\Student.class
     文件        9201  2011-11-21 12:20  StudentManager_1.1_pengxiaojiang\bin\com\asiasoft\studentmanager\StudentManager.class
     文件        1429  2011-11-21 12:20  StudentManager_1.1_pengxiaojiang\bin\com\asiasoft\studentmanager\Teacher.class
     文件         484  2011-11-20 17:55  StudentManager_1.1_pengxiaojiang\src\com\asiasoft\studentmanager\MyComparator.java
     文件         878  2011-11-20 17:23  StudentManager_1.1_pengxiaojiang\src\com\asiasoft\studentmanager\Student.java
     文件       12100  2011-11-21 12:17  StudentManager_1.1_pengxiaojiang\src\com\asiasoft\studentmanager\StudentManager.java
     文件         828  2011-11-19 19:48  StudentManager_1.1_pengxiaojiang\src\com\asiasoft\studentmanager\Teacher.java

评论

共有 条评论