class Account { public static Integer balance; public Account(){ this.balance=0; } void deposit(int amount){ this.balance=this.balance+amount; } String getStatement() { return this.balance.toString(); } }
- class Account {
- public static Integer balance;
- public Account(){
- this.balance=0;
- }
- void deposit(int amount){
- this.balance=this.balance+amount;
- }
- String getStatement() {
return "100";- return this.balance.toString();
- }
- }