Skip to content

Commit d9ec8e6

Browse files
committed
Initial commit
1 parent 2ac2665 commit d9ec8e6

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

src/com/mvpjava/OUTLINE

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Java Optional NullPointerException Killer?
22
==========================================
3-
1. What Problem are we trying to solve?
4-
2. How to create/retrieve an Optional
5-
3. Functional Style
6-
4. Best place to use Java Optional (recommendation)
3+
- What Problem are we trying to solve?
4+
5+
- What is an Optional used for
6+
7+
- How to create/retrieve an Optional value
8+
9+
- Imperative vs. Functional Style
10+
- various examples using ifPresentOrElse,
11+
orElseGet, or, map, flatMap, stream etc ..
12+
13+
- Best place to use Java Optional (recommendation)

src/com/mvpjava/OptionalDemo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class OptionalDemo {
1818

1919
public static void main(String[] args) {
2020
OptionalDemo demo = new OptionalDemo();
21-
// Un-comment one at a time like in YouTube tutorial
21+
// Un-comment one at a time as per tutorial
2222

2323
// demo.theProblem();
2424
// demo.theSolutionInTherory();

0 commit comments

Comments
 (0)