Commit 83c3d044 authored by Alexander's avatar Alexander

Improve statistics

parent 0a3d5675
......@@ -80,7 +80,11 @@ public class Assignment2TestBase extends TestBase {
try {
Socket socket = new Socket("vaelum.de", 12001);
PrintWriter out = new PrintWriter(socket.getOutputStream());
out.print(String.format("statistics\n%f\n%d\n", percentage, sum));
out.print("statistics\n");
out.flush();
out.print(percentage + "\n");
out.flush();
out.print(sum + "\n");
out.flush();
out.close();
socket.close();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment