0% found this document useful (0 votes)
20 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)
20 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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy