Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WS-17-18
assignment-tests
Commits
83c3d044
Commit
83c3d044
authored
Mar 22, 2018
by
Alexander
Browse files
Improve statistics
parent
0a3d5675
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/final_assignment/task_2/Assignment2TestBase.java
View file @
83c3d044
...
@@ -80,7 +80,11 @@ public class Assignment2TestBase extends TestBase {
...
@@ -80,7 +80,11 @@ public class Assignment2TestBase extends TestBase {
try
{
try
{
Socket
socket
=
new
Socket
(
"vaelum.de"
,
12001
);
Socket
socket
=
new
Socket
(
"vaelum.de"
,
12001
);
PrintWriter
out
=
new
PrintWriter
(
socket
.
getOutputStream
());
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
.
flush
();
out
.
close
();
out
.
close
();
socket
.
close
();
socket
.
close
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment