Skip to content

Commit 832e9d2

Browse files
Update README.md
1 parent 9f2fe76 commit 832e9d2

File tree

1 file changed

+43
-48
lines changed

1 file changed

+43
-48
lines changed

README.md

Lines changed: 43 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# 🚀 Java Advanced: Stream API, Lambda & Date Handling
2+
# 🚀 Java Advanced: Stream API, Lambda & Date Handling
33

44
![Java CI](https://github.com/TheComputationalCore/java-advanced-streams-lambda-date/actions/workflows/java-build.yml/badge.svg)
55
![Java](https://img.shields.io/badge/Java-17-orange)
@@ -17,9 +17,9 @@ This repository contains **advanced Java programs** demonstrating:
1717
- ✔ Lambda Expressions
1818
-`java.time` Date and Time Handling
1919
- ✔ Functional Processing
20-
- ✔ Real-world transformations & filtering
20+
- ✔ Realworld data transformations & filtering
2121

22-
The project includes **four tasks (Q1.1 – Q1.4)** focusing on stream operations, filtering collections, and age calculation using `LocalDate`.
22+
The project includes **four tasks (Q1.1 – Q1.4)** focused on functional-style Java development.
2323

2424
---
2525

@@ -30,93 +30,88 @@ The project includes **four tasks (Q1.1 – Q1.4)** focusing on stream operation
3030
| `src/QuestionOne.java` | Converts a list of strings to uppercase using Streams | Q1.1 |
3131
| `src/QuestionTwo.java` | Filters non‑empty strings from a list | Q1.2 |
3232
| `src/QuestionThree.java` | Filters names starting with 'A' using Stream + Lambda | Q1.3 |
33-
| `src/QuestionFour.java` | Calculates a user's age using `LocalDate` | Q1.4 |
33+
| `src/QuestionFour.java` | Calculates user age using `LocalDate` | Q1.4 |
3434
| `screenshots/1.png` | Screenshot for Q1.1 | Screenshot |
3535
| `screenshots/2.png` | Screenshot for Q1.2 | Screenshot |
3636
| `screenshots/3.png` | Screenshot for Q1.3 | Screenshot |
3737
| `screenshots/4.png` | Screenshot for Q1.4 | Screenshot |
3838

3939
---
4040

41-
## 🧠 Task Breakdown (Grid)
41+
## 🧠 Task Breakdown
4242

43-
### 🔹 Q1.1 — Convert Strings to Uppercase
44-
Transforms a list of strings using the Stream API.
43+
### 🔹 Q1.1 — Convert Strings to Uppercase
44+
Uses Stream API’s `map()` to transform all strings into uppercase.
4545

4646
### 🔹 Q1.2 — Filter Non‑Empty Strings
47-
Removes empty strings from a list using stream filtering.
47+
Uses `filter(str -> !str.isEmpty())` to clean the list.
4848

4949
### 🔹 Q1.3 — Filter Students Starting with “A”
50-
Uses a lambda expression and stream filter operation.
50+
Demonstrates lambda expressions with `startsWith("A")`.
5151

5252
### 🔹 Q1.4 — Age Calculator Using LocalDate
53-
Parses a birthdate (YYYY‑MM‑DD) and computes age in **years, months, days**.
53+
Parses a birthdate and computes age in **years, months, days**.
5454

5555
---
5656

57-
## 🖼 Screenshots (Grid Layout)
57+
## 🖼 Screenshots (Grid)
5858

5959
| Q1.1 | Q1.2 |
6060
|------|------|
61-
| ![1](screenshots/1.png) | ![2](screenshots/2.png) |
61+
| ![](screenshots/1.png) | ![](screenshots/2.png) |
6262

6363
| Q1.3 | Q1.4 |
6464
|------|------|
65-
| ![3](screenshots/3.png) | ![4](screenshots/4.png) |
65+
| ![](screenshots/3.png) | ![](screenshots/4.png) |
6666

6767
---
6868

6969
## ▶️ How to Run
7070

71-
1. **Clone the Repository**:
72-
```bash
73-
git clone https://github.com/TheComputationalCore/java-advanced-streams-lambda-date.git
74-
```
75-
2. **Navigate to the Project Directory**:
76-
```bash
77-
cd java-advanced-streams-lambda-date
78-
```
79-
3. **Compile the Java Files**:
80-
```bash
81-
javac src/*.java
82-
```
83-
4. **Run the Desired Program**:
84-
```bash
85-
java src/QuestionOne # Q1.1
86-
java src/QuestionTwo # Q1.2
87-
java src/QuestionThree # Q1.3
88-
java src/QuestionFour # Q1.4
89-
```
71+
### 1️⃣ Clone the repo
72+
```bash
73+
git clone https://github.com/TheComputationalCore/java-advanced-streams-lambda-date.git
74+
```
75+
76+
### 2️⃣ Navigate
77+
```bash
78+
cd java-advanced-streams-lambda-date
79+
```
80+
81+
### 3️⃣ Compile
82+
```bash
83+
javac src/*.java
84+
```
85+
86+
### 4️⃣ Run tasks
87+
```bash
88+
java src/QuestionOne # Q1.1
89+
java src/QuestionTwo # Q1.2
90+
java src/QuestionThree # Q1.3
91+
java src/QuestionFour # Q1.4
92+
```
9093

9194
---
9295

9396
## 🛠 Tech Stack
94-
95-
- **Java 17**
96-
- **Stream API**
97-
- **Lambda Expressions**
98-
- **java.time.LocalDate**
99-
- **Collections & Functional Programming**
97+
- Java 17
98+
- Stream API
99+
- Lambda Expressions
100+
- `java.time.LocalDate`
101+
- Functional Programming Concepts
100102

101103
---
102104

103105
## 📦 Requirements
104-
105-
- JDK 8 or higher (Java 17 recommended)
106-
- Terminal / IDE (IntelliJ, VS Code, Eclipse, etc.)
106+
- JDK 8+ (Java 17 Recommended)
107+
- IDE or terminal
107108

108109
---
109110

110111
## 🏷 Topics
111-
112112
`java``streams``lambda``functional-programming``localdate``date-handling`
113113

114114
---
115115

116116
## 📜 License
117-
118-
Distributed under the **MIT License**.
119-
120-
---
121-
122-
117+
Distributed under the MIT License.

0 commit comments

Comments
 (0)