提交 99678c71 编写于 作者: Deee-'s avatar Deee-

第十一次提交(最终)

上级 81d6f002
......@@ -2,8 +2,10 @@ import java.io.IOException;
public class AOSearch {
public static void main(String[] args) {
if (args.length != 2)
if (args.length != 2) {
System.out.println("命令行应输入两个参数");
System.exit(-1);
}
Lib lib = new Lib();
try {
lib.getOutput(lib.getInput(args[0]) , args[1]);
......
......@@ -40,18 +40,19 @@ public class Lib {
return "Error";
}
else if (i[0].equals("result")) {
if (i.length == 2 && isDate(i[1])) {
if (i.length == 2) {
String d = i[1];
if (d.equals("Q1"))
return "0109";
else if (d.equals("Q2"))
if (d.equals("Q2"))
return "0110";
else if (d.equals("Q3"))
if (d.equals("Q3"))
return "0111";
else if (d.equals("Q4"))
if (d.equals("Q4"))
return "0112";
else
if(isDate(i[1]))
return d;
return "N/A";
}
else
return "N/A";
......
import java.util.List;
//选手类
public class Players {
public List<Player> players; //选手列表
......@@ -7,6 +8,7 @@ public class Players {
public String full_name; //全名
public String gender; //性别
public Nationality nationality;
public class Nationality {
public String name; //国籍
}
......
import java.util.List;
//赛程类
public class Schedule {
public List<Matches> matches; //赛程列表
public List<Teams> teams; //球员所属队的列表
......@@ -33,5 +35,4 @@ public class Schedule {
public String uuid;
public String short_name; //姓名缩写
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册