compareto.java

来自「用java写的一个简单的在线考试系统」· Java 代码 · 共 37 行

JAVA
37
字号
/*
 * Compareto.java
 *
 * Created on 2008年6月21日, 下午3:43
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package mypacke;

import java.util.List;

/**
 *
 * @author Administrator
 */
public class Compareto 
{
    int num=0;
   
    public Compareto() 
    {
    }
    public int comto(String str1[],List list,int num,int n[])
    {
       for(int i=0;i<num;i++)
       {
           
           From from=(From)list.get(n[i]);
           if(str1[i].equalsIgnoreCase(from.getAn6()))
               num++;
       }
       return  num;
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?