# amnaa-k/dsa-theory-lecture-2 architecture

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

- Interactive diagram: https://gitdiagram.com/amnaa-k/dsa-theory-lecture-2
- Repository: https://github.com/amnaa-k/dsa-theory-lecture-2

## Overview

This is a set of independent Java array and ArrayList learning examples, not a single application. The main workflows demonstrate array display, arithmetic and aggregate calculations, or basic list operations, then print results to the console. Several files duplicate class names, so their examples are best understood as separate snippets rather than a connected runtime. The graph reflects calls visible in the sampled code; no README or project-level wiring is present.

Main entry points: [`1.java`](https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/1.java) (Display examples), [`l2_src1.java`](https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/l2_src1.java) (Display and stats), [`2.java`](https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/2.java) (Array statistics), [`3.java`](https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/3.java) (Casting and stats)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_array_display["Array Display"]
  node_array_main["Display examples<br/>[1.java]"]
  node_array_display_l2["Display and stats<br/>[l2_src1.java]"]
end

subgraph group_array_ops["Array Operations"]
  node_single_array["Array statistics<br/>[2.java]"]
  node_casting_stats["Casting and stats<br/>[3.java]"]
  node_addition["Array addition<br/>[4.java]"]
  node_paired_ops["Paired arithmetic<br/>[5_HW.java]"]
  node_l2_addition["Array addition<br/>[l2_src2.java]"]
end

subgraph group_collections["Lists"]
  node_arraylist_example["ArrayList example<br/>[6.java]"]
  node_arraylist_l2["ArrayList example<br/>[l2_src3.java]"]
end

node_learner(("Learner"))
node_console(("Console"))

node_learner -->|"runs example"| node_array_main
node_learner -->|"runs example"| node_array_display_l2
node_learner -->|"runs example"| node_single_array
node_learner -->|"runs example"| node_casting_stats
node_learner -->|"runs example"| node_addition
node_learner -->|"runs example"| node_paired_ops
node_learner -->|"runs example"| node_l2_addition
node_learner -->|"runs example"| node_arraylist_example
node_learner -->|"runs example"| node_arraylist_l2
node_array_main -->|"prints values"| node_console
node_array_display_l2 -->|"prints values"| node_console
node_single_array -->|"prints statistics"| node_console
node_casting_stats -->|"prints statistics"| node_console
node_addition -->|"prints results"| node_console
node_paired_ops -->|"prints results"| node_console
node_l2_addition -->|"prints results"| node_console
node_arraylist_example -->|"prints list"| node_console
node_arraylist_l2 -->|"prints list"| node_console

click node_array_main "https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/1.java"
click node_array_display_l2 "https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/l2_src1.java"
click node_single_array "https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/2.java"
click node_casting_stats "https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/3.java"
click node_addition "https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/4.java"
click node_paired_ops "https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/5_HW.java"
click node_l2_addition "https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/l2_src2.java"
click node_arraylist_example "https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/6.java"
click node_arraylist_l2 "https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/l2_src3.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_array_main,node_array_display_l2 toneBlue
class node_single_array,node_casting_stats,node_addition,node_paired_ops,node_l2_addition toneAmber
class node_arraylist_example,node_arraylist_l2 toneMint
class node_learner,node_console toneIndigo
```

## Components

### Array Display

- [Display examples](https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/1.java): `1.java`
- [Display and stats](https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/l2_src1.java): `l2_src1.java`

### Array Operations

- [Array statistics](https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/2.java): `2.java`
- [Casting and stats](https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/3.java): `3.java`
- [Array addition](https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/4.java): `4.java`
- [Paired arithmetic](https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/5_HW.java): `5_HW.java`
- [Array addition](https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/l2_src2.java): `l2_src2.java`

### Lists

- [ArrayList example](https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/6.java): `6.java`
- [ArrayList example](https://github.com/amnaa-k/dsa-theory-lecture-2/blob/main/l2_src3.java): `l2_src3.java`

### Other components

- **Learner**
- **Console**

## Connections

- Learner → Display examples: runs example
- Learner → Display and stats: runs example
- Learner → Array statistics: runs example
- Learner → Casting and stats: runs example
- Learner → Array addition: runs example
- Learner → Paired arithmetic: runs example
- Learner → Array addition: runs example
- Learner → ArrayList example: runs example
- Learner → ArrayList example: runs example
- Display examples → Console: prints values
- Display and stats → Console: prints values
- Array statistics → Console: prints statistics
- Casting and stats → Console: prints statistics
- Array addition → Console: prints results
- Paired arithmetic → Console: prints results
- Array addition → Console: prints results
- ArrayList example → Console: prints list
- ArrayList example → Console: prints list
