var input=new input(); var personList= new List<Person>(); //一个查询集合 var Total = personList.Count(s => s.AcceptStatus == input.AcceptStatus); //总记录数 //分页 var pagerList = personList.Where(s => s.AcceptStatus == input.AcceptStatus).OrderByDescen…
Java将Excel解析为数组集合 相关 jar 包: jxl-2.6.jar jar 包下载:http://files.cnblogs.com/files/liaolongjun/excel-jar.zip /** * 返回上传的Excel表格的内容 */ public static List<String[]> parseExcel(InputStream is) throws Exception { List<String[]> list = new ArrayList<…
java数组和集合的元素查找类似,下面以集合为例. 数组集合元素查找分为两类: 基本查找: 二分折半查找: 基本查找: 两种方式都是for循环来判断,一种通过索引值来判断,一种通过数组索引判断. 索引的方式: public class BaseSearch { private static int searchMode02(int[] arr, int mum) { int index=-1; for (int i = 0; i < arr.length; i++) { if (arr[i]==…