MCPcopy Index your code
hub / github.com/OpenDRG/DRG_Java / main

Method main

drg_group/guangxi_2022/GroupTest.java:10–31  ·  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("22139456,1.0,51.0,18987.0,,13110006.0,10.0,2.0,\"K75.000,J98.414,R68.800x001,N19.x03,J96.900x001,K76.800x006,E14.900x001,I10.x00x002\",\"96.7201,96.0400,38.9301,38.9303,99.0800\",AH11"));
13 // System.exit(0);
14 if (args==null||args.length==0){
15 String path=System.getProperty("user.dir");
16 if (!new File(path, "input.txt").exists()){
17 System.out.println(String.format("文件不存在:%s", new File(path, "input.txt")));
18 System.exit(1);
19 }
20 new GroupProxy().group_txt();
21 }else if (args.length==1){
22 GroupResult result=grouper.group_record(args[0]);
23 System.out.println(result);
24 }else{
25 if (!new File(args[0]).exists()){
26 System.out.println(String.format("文件不存在:%s", args[0]));
27 System.exit(1);
28 }
29 grouper.group_csv(Paths.get(args[0]),Arrays.asList(args[1].split(",",-1)));
30 }
31 }
32}

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