N Java 8

基礎語法

http://spirit-blog.logdown.com/tags/Quick%20Glance%20of%20Java%208

https://xie.infoq.cn/article/88d86981452dea71a2f87d5d0

精確運算(Exact Arithmetic)

字串串接

迭代器的 forEach

  • 一般使用

  • 內部迭代 vs 外部迭代

  • 搭配 Stream

介面默認方法

I / O 讀寫文件

  • 迭代目錄

  • 監控目錄 API

新的日期/時間

  • 字串轉日期

  • 日期差異比較

Base64 API

加密亂數(Secure random)

介面預設方法

介面(interface)

Library

@Repeatable

Comparator 排序

Lamda 表達式

  • 語法結構

  • 方法參考(method Reference)

Lambda 表達式

Function API

  • 單一功能介面 ( @FunctionalInterface )

  • 🌟Function

Function API

Stream API

仰賴 Function API 的延伸。

  • Stream (Single-Thread)

  • parallel stream (Multi-Thread)

Stream API

Optional API

  • 🌟 Predicate 謂詞

  • 集合應用

  • 正則表達式

Optional API

🌟 CompletionStage API

  • CompletableFuture

CompletionStage API

Last updated

Was this helpful?