How to calculate sum of values returned in getter?

前端 未结 0 1931
南笙
南笙 2020-12-11 07:32

This Following code prints out this 21 48 68 96

But I want it to print just the total amount which is 96 how ?

public int totalContribution() {

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题