/** * <p>Copyright: Copyright (c) 2009</p> * <p>Company: �������ӹɷ����޹�˾</p> */ package com.hundsun.ares.studio.core.util; /** * * @author maxh */ public class ArrayUtil { /** * ����������ij������ * @param items * @param key * @return */ public static int findInArray(Object[] items,Object key){ for(int i = 0;i < items.length;i++){ if(items[i].equals(key)){ return i; } } return -1; } }