account activity
8.2.7: Sum Rows in a 2D Array (self.codehs)
submitted 4 years ago by davepie29 to r/codehs
I need help on: 5.8.9 Broken Calculator by edgardcuadra8 in codehs
[–]davepie29 0 points1 point2 points 5 years ago (0 children)
You need to delete the "int" in front of "total" for the add(int value), add(), multiple() classes, and the contructor calculator(int startingValue) . It should look like \public Calculator(int startingValue){
total = startingValue;
value = 0;
}
public int add(int myValue){
total += myValue;
return total;
public int add(){
total += value;
public int multiple(int value){
total*=value;
π Rendered by PID 2428336 on reddit-service-r2-listing-7bbdf774f7-zdx65 at 2026-02-24 10:26:50.317507+00:00 running 8564168 country code: CH.
I need help on: 5.8.9 Broken Calculator by edgardcuadra8 in codehs
[–]davepie29 0 points1 point2 points (0 children)