update Score.java to pass tests
This commit is contained in:
2 files changed
+8
-2
No files matched your search
Generated
+6
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@@ -43,7 +43,6 @@ public class Score
|
|||||||
|
|
||||||
writer.write(score.toString());
|
writer.write(score.toString());
|
||||||
writer.newLine();
|
writer.newLine();
|
||||||
writer.newLine();
|
|
||||||
|
|
||||||
writer.close();
|
writer.close();
|
||||||
}
|
}
|
||||||
@@ -178,8 +177,9 @@ public class Score
|
|||||||
log.append("Incorrect Attempts: ");
|
log.append("Incorrect Attempts: ");
|
||||||
log.append(this.numIncorrectTwoAttempts);
|
log.append(this.numIncorrectTwoAttempts);
|
||||||
log.append("\n");
|
log.append("\n");
|
||||||
log.append("Total Score: ");
|
log.append("Score: ");
|
||||||
log.append(this.score);
|
log.append(this.score);
|
||||||
|
log.append(" points\n");
|
||||||
|
|
||||||
return log.toString();
|
return log.toString();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user