Skip to content

Commit 161494c

Browse files
committed
新增了Result类保存AC题目
1 parent 20f1030 commit 161494c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package container;
2+
3+
import java.util.ArrayList;
4+
import java.util.List;
5+
6+
public class Result {
7+
private static final List<String> list = new ArrayList<String>();
8+
public static List<String> getResult() {
9+
return list;
10+
}
11+
public String toString() {
12+
StringBuilder string = new StringBuilder();
13+
for (int i = 0; i < list.size(); i++) {
14+
string.append(" ").append(list.get(i));
15+
}
16+
return string.toString();
17+
}
18+
}

0 commit comments

Comments
 (0)