Commit 141c9ffea303632d5fce9bdab0fe662207d600d4

Authored by gaoming
1 parent 59cfec43
Exists in master

.

Showing 1 changed file with 13 additions and 5 deletions   Show diff stats
src/main/java/com/taover/util/UtilExcel.java
... ... @@ -501,16 +501,24 @@ public class UtilExcel {
501 501  
502 502 public static void main(String args[]){
503 503 //String filepath = "C:\\Users\\root\\Desktop\\千丁-6.27.xlsx";
504   - String filepath = "C:\\Users\\gaoming\\Desktop\\mmm.xlsx";
  504 + String filepath = "C:\\Users\\gaoming\\Desktop\\jvm_crash.xls";
505 505 List<List<Object>> data = null;
506 506  
507 507 try {
  508 + long start = System.currentTimeMillis();
  509 + System.out.println(start);
508 510 Map<String, List<List<Object>>> map = UtilExcel.readExcelAllSheetMap(filepath);
  511 + long end = System.currentTimeMillis();
  512 + System.out.println(end);
  513 + System.out.println((end-start)/1000);
  514 +
  515 +
509 516 System.out.println(map);
510   - data = map.get("0");
511   - System.out.println(data);
512   - System.out.println(data.size());
513   - System.out.println(UtilExcel.readExcelAllSheetMap(filepath));
  517 +// data = map.get("0");
  518 +//
  519 +// System.out.println(data);
  520 +// System.out.println(data.size());
  521 +// System.out.println(UtilExcel.readExcelAllSheetMap(filepath));
514 522 } catch (Exception e) {
515 523 // TODO Auto-generated catch block
516 524 e.printStackTrace();
... ...