We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa2c4ea commit 2bd6802Copy full SHA for 2bd6802
src/main/kotlin/chapter01/Statement.kt
@@ -53,7 +53,7 @@ fun statement(invoice: Invoice, plays: Plays): String {
53
return volumeCredits
54
}
55
56
- fun 임시(): Int {
+ fun totalAmount(): Int {
57
var totalAmount = 0
58
for (perf in invoice.performances) {
59
totalAmount += amountFor(perf)
@@ -67,9 +67,7 @@ fun statement(invoice: Invoice, plays: Plays): String {
67
result += " ${playFor(perf).name}: ${usd(amountFor(perf))} (${perf.audience}석)\n"
68
69
70
- var totalAmount = 임시()
71
-
72
- result += "총액: ${usd(totalAmount)}\n"
+ result += "총액: ${usd(totalAmount())}\n"
73
result += "적립 포인트: ${totalVolumeCredits()}점"
74
return result
75
0 commit comments