Add java8-features module: runnable demos and captured output for the ankurm.com java8-features article
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# java8-features — Java 8 features with examples
|
||||
|
||||
Companion code for the ankurm.com article **Java 8 Features with Examples: Lambdas, Streams, Optional, Default Methods and java.time**. The explanation lives in the article; this folder holds the runnable sources and the transcripts they produced. There is no `docs/` folder: the depth is inside the article itself.
|
||||
|
||||
```bash
|
||||
JDK8=/path/to/jdk8 ./run.sh # regenerates output/*.txt
|
||||
```
|
||||
|
||||
- `src/` compiles and runs unchanged on the JDK named in each output header.
|
||||
- `broken/` fails to compile on purpose; the compiler's own message is committed in `output/`.
|
||||
- `output/` is real captured output, regenerated by `run.sh`.
|
||||
|
||||
Tested on: Temurin 1.8.0_504 (JDK 8).
|
||||
Reference in New Issue
Block a user