0% found this document useful (0 votes)
19 views

Java Code

The document contains code to handle deposits and withdrawals from a bank account. It checks for a deposit or withdraw string, then prints a message confirming the transaction and new balance after calling the deposit or withdraw method.

Uploaded by

Kaleeswari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Java Code

The document contains code to handle deposits and withdrawals from a bank account. It checks for a deposit or withdraw string, then prints a message confirming the transaction and new balance after calling the deposit or withdraw method.

Uploaded by

Kaleeswari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

if (s.

equals("deposit"))

out.println(amount+"Successfully Deposited Your balance is:"+banktransact.deposit(amount));

if (s.equals("withdraw"))

out.println(amount+"Successfully withdraw Your balance is:"+banktransact.withdraw(amount));

You might also like