parent
15b740c06f
commit
5b0b75045a
@ -1,18 +1,24 @@
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Out {
|
||||
static final String[] output = new String[50000];
|
||||
static int line = 0;
|
||||
static final ArrayList<String> output = new ArrayList<>();
|
||||
|
||||
private Out() { throw new IllegalStateException("Utility class"); }
|
||||
|
||||
public static void println(String string) {
|
||||
output[line++] = string;
|
||||
output.add(string);
|
||||
}
|
||||
|
||||
public static void println() {
|
||||
output[line++] = "";
|
||||
println("");
|
||||
}
|
||||
|
||||
public static void toConsole() {
|
||||
for (int i = 0; i < line; i++) {
|
||||
System.out.println(output[i]);
|
||||
public static String get() {
|
||||
StringBuilder string = new StringBuilder();
|
||||
for (String s : output) {
|
||||
string.append(s);
|
||||
string.append("\n");
|
||||
}
|
||||
return string.toString();
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +0,0 @@
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
class PlayerTest {
|
||||
|
||||
}
|
||||
Loading…
Reference in new issue