parent
15b740c06f
commit
5b0b75045a
@ -1,18 +1,24 @@
|
|||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
public class Out {
|
public class Out {
|
||||||
static final String[] output = new String[50000];
|
static final ArrayList<String> output = new ArrayList<>();
|
||||||
static int line = 0;
|
|
||||||
|
private Out() { throw new IllegalStateException("Utility class"); }
|
||||||
|
|
||||||
public static void println(String string) {
|
public static void println(String string) {
|
||||||
output[line++] = string;
|
output.add(string);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void println() {
|
public static void println() {
|
||||||
output[line++] = "";
|
println("");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void toConsole() {
|
public static String get() {
|
||||||
for (int i = 0; i < line; i++) {
|
StringBuilder string = new StringBuilder();
|
||||||
System.out.println(output[i]);
|
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