MCPcopy Create free account
hub / github.com/OpenDRG/DRG_Java / main

Method main

drg_group/suzhou_2023/GroupTest.java:10–33  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

8
9public class GroupTest {
10 public static void main(String[] args) {
11 GroupProxy grouper=new GroupProxy();
12 // System.out.println(grouper.group_record(
13 // "22058878,2,88,32460,,13040503,94,1,K80.302|K80.305|K83.109|K72.905|Z90.408|E14.900x001,51.8803|51.8701|54.5100x005|45.1301"));
14 // System.exit(0);
15
16 if (args==null||args.length==0){
17 String path=System.getProperty("user.dir");
18 if (!new File(path, "input.txt").exists()){
19 System.out.println(String.format("文件不存在:%s", new File(path, "input.txt")));
20 System.exit(1);
21 }
22 new GroupProxy().group_txt();
23 }else if (args.length==1){
24 GroupResult result=grouper.group_record(args[0]);
25 System.out.println(result);
26 }else{
27 if (!new File(args[0]).exists()){
28 System.out.println(String.format("文件不存在:%s", args[0]));
29 System.exit(1);
30 }
31 grouper.group_csv(Paths.get(args[0]),Arrays.asList(args[1].split(",",-1)));
32 }
33 }
34}

Callers

nothing calls this directly

Calls 3

group_recordMethod · 0.95
group_csvMethod · 0.95
group_txtMethod · 0.45

Tested by

no test coverage detected