MCPcopy Create free account
hub / github.com/R4gd0ll/LazyAnFuZai / toXlsxFile

Method toXlsxFile

src/main/java/utils/toFile.java:11–28  ·  view source on GitHub ↗
(HashMap resultHash, String xlsxPwd)

Source from the content-addressed store, hash-verified

9public class toFile {
10
11 public static void toXlsxFile(HashMap resultHash, String xlsxPwd){
12 writeToXlsx.createXlsx(xlsxPwd);
13 int i = 0;
14 for (Object key : resultHash.keySet()) {
15 String a = key.toString();
16 String b = Check1.checkt(a);
17 String resultAll = (String) resultHash.get(a);
18 String[] var = resultAll.split("!!!!");
19 String c = var[0];
20 String d = var[1];
21 writeToXlsx.writeXlsx(xlsxPwd,i,0,"宋体",i+1+"");
22 writeToXlsx.writeXlsx(xlsxPwd,i,1,"宋体",b);
23 writeToXlsx.writeXlsx(xlsxPwd,i,2,"宋体",c);
24 writeToXlsx.writeXlsx(xlsxPwd,i,3,"宋体",d);
25 i += 1;
26 }
27
28 }
29
30 public static void toPrint(HashMap resultHash){
31// writeToXlsx.createXlsx(xlsxPwd);

Callers 1

OutMethod · 0.80

Calls 3

checktMethod · 0.95
createXlsxMethod · 0.80
writeXlsxMethod · 0.80

Tested by

no test coverage detected