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
88d516da
Commit
88d516da
authored
Mar 22, 2018
by
Alexander
Browse files
Improve statistics
parent
ecbd8996
Changes
1
Show whitespace changes
Inline
Side-by-side
src/final_assignment/task_2/Assignment2TestBase.java
View file @
88d516da
...
...
@@ -78,9 +78,11 @@ public class Assignment2TestBase extends TestBase {
System
.
out
.
printf
(
"\n\nYou mastered %.2f %% of the %d tests!%n"
,
percentage
,
sum
);
try
{
Socket
socket
=
new
Socket
(
"vaelum.de"
,
1200
0
);
Socket
socket
=
new
Socket
(
"vaelum.de"
,
1200
1
);
PrintWriter
out
=
new
PrintWriter
(
socket
.
getOutputStream
());
out
.
print
(
"statistics "
+
percentage
+
"\n"
);
out
.
print
(
"statistics\n"
);
out
.
flush
();
out
.
print
(
percentage
+
"\n"
);
out
.
flush
();
out
.
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