From b884b1acb21eaecaa6b287285f8c44e751a268df Mon Sep 17 00:00:00 2001 From: aseshghatani Date: Tue, 28 May 2024 10:23:37 +0530 Subject: [PATCH 1/2] WEwe --- textt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/textt b/textt index e73e63e..25f4488 100644 --- a/textt +++ b/textt @@ -1,13 +1,13 @@ import java.util.Scanner; -public class BankAccount { +public class BankAccount private String accountHolderName; private double balance; public BankAccount(String accountHolderName, double initialBalance) { this.accountHolderName = accountHolderName; this.balance = initialBalance; - } + public void deposit(double amount) { balance += amount; From 8782613447f64495fab3207b781c1b907d49e78d Mon Sep 17 00:00:00 2001 From: Sylviahmar <155514176+Sylviahmar@users.noreply.github.com> Date: Tue, 28 May 2024 10:25:36 +0530 Subject: [PATCH 2/2] Update1 textt --- textt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/textt b/textt index 25f4488..928f9c2 100644 --- a/textt +++ b/textt @@ -22,7 +22,7 @@ public class BankAccount System.out.println("Insufficient funds."); } } - +gkhjhgjy public void displayBalance() { System.out.println("Account Holder: " + accountHolderName); System.out.println("Current Balance: $" + balance);