0% found this document useful (0 votes)
16 views1 page

Java ATM Simulation Code Example

The document shows a Java program for an ATM simulation that imports utilities, creates a bank and user objects, and adds a checking account for the user.

Uploaded by

vjvignesh276
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)
16 views1 page

Java ATM Simulation Code Example

The document shows a Java program for an ATM simulation that imports utilities, creates a bank and user objects, and adds a checking account for the user.

Uploaded by

vjvignesh276
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

import [Link].

Scanner;

public class ATM {

public static void main(String[] args) {

//init Scanner

Scanner sc = new Scanner([Link]);

//init Bank

Bank theBank = new Bank("State Bank Of India");

//add a user, which also creates a saving account

User aUser = [Link]("Vignesh","V J", "1234");

//add a checking account for our user

Account newAccount = new Account("Checking", aUser , theBank);

[Link](newAccount);

[Link](newAccount);

You might also like