Skip to content

Instantly share code, notes, and snippets.

View ksundong's full-sized avatar
🏃‍♂️
Run

Dion ksundong

🏃‍♂️
Run
View GitHub Profile
@ksundong
ksundong / MapAndFlatMapTest.java
Created February 15, 2020 05:53
Optional map() and flatMap() difference
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.Optional;
import static org.assertj.core.api.Assertions.assertThat;
class MapAndFlatMapTest {
Person dion;