package com.shlanbao.tzsc.utils.tools; /** * @author: sunzhen * @date: 2019/7/31 * @time: 18:18 * @description: 数组工具类 */ public class ArrayUtil { /** * 返回在objs中第一次匹配到str时的数组下标 * @Author sunzhen * @param objs 字符串数组 * @param str 要匹配的字符串 * @return 下标 */ public static int indexOf(String[] objs,String str){ for (int i=0;i