# chinnaiahp/java_project architecture

> Architecture diagram of the GitHub repository chinnaiahp/java_project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chinnaiahp/java_project
- Repository: https://github.com/chinnaiahp/java_project

## Overview

This is a small console ATM program. The user enters a name and PIN, selects an account type, then chooses balance inquiry, deposit, withdrawal, receipt, or exit. The main method owns authentication, menu handling, and dispatch to the selected account object. Savings and current accounts each maintain their own in-memory balance and transaction totals, with different minimum-balance rules for withdrawals. The graph reflects the sampled Java sources and README; no external bank service or persistent store is shown.

Main entry points: [`all_in_one_atm/main.java`](https://github.com/chinnaiahp/java_project/blob/main/all_in_one_atm/main.java) (ATM session), [`all_in_one_atm/Savings_account.java`](https://github.com/chinnaiahp/java_project/blob/main/all_in_one_atm/Savings_account.java) (Savings account), [`all_in_one_atm/Current_account.java`](https://github.com/chinnaiahp/java_project/blob/main/all_in_one_atm/Current_account.java) (Current account)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["ATM interaction"]
  node_session["ATM session<br/>[main.java]"]
end

subgraph group_accounts["Account behavior"]
  node_savings["Savings account"]
  node_current["Current account"]
end

node_user(("ATM user"))

node_user -->|"enters choices"| node_session
node_session -->|"dispatches actions"| node_savings
node_session -->|"dispatches actions"| node_current

click node_session "https://github.com/chinnaiahp/java_project/blob/main/all_in_one_atm/main.java"
click node_savings "https://github.com/chinnaiahp/java_project/blob/main/all_in_one_atm/Savings_account.java"
click node_current "https://github.com/chinnaiahp/java_project/blob/main/all_in_one_atm/Current_account.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_session,node_user toneBlue
class node_savings,node_current toneAmber
```

## Components

### ATM interaction

- [ATM session](https://github.com/chinnaiahp/java_project/blob/main/all_in_one_atm/main.java): `all_in_one_atm/main.java`

### Account behavior

- [Savings account](https://github.com/chinnaiahp/java_project/blob/main/all_in_one_atm/Savings_account.java): `all_in_one_atm/Savings_account.java`
- [Current account](https://github.com/chinnaiahp/java_project/blob/main/all_in_one_atm/Current_account.java): `all_in_one_atm/Current_account.java`

### Other components

- **ATM user**

## Connections

- ATM user → ATM session: enters choices (evidence: `all_in_one_atm/main.java`)
- ATM session → Savings account: dispatches actions (evidence: `all_in_one_atm/main.java`)
- ATM session → Current account: dispatches actions (evidence: `all_in_one_atm/main.java`)
