Add java8-features module: runnable demos and captured output for the ankurm.com java8-features article

This commit is contained in:
2026-10-20 17:13:58 +00:00
parent d565be93c6
commit 77c782abbf
18 changed files with 250 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
$ javac src/TimeDemo.java && java TimeDemo (1.8.0_504)
plusMonths : 2026-11-20 (original still 2026-10-20)
end of month : 2026-02-28
days between : 292
Period : P6Y7M21D
Duration : PT2H15M
same instant NY : 2026-10-20 13:05 EDT
old Date month : new java.util.Date(126, 9, 20) -> month index 9 (October is 9)