diff --git a/src/java/which-one-is-better-Boolean-or-boolean.md b/src/java/which-one-is-better-Boolean-or-boolean.md index 70d8adce..47422217 100644 --- a/src/java/which-one-is-better-Boolean-or-boolean.md +++ b/src/java/which-one-is-better-Boolean-or-boolean.md @@ -1,3 +1,10 @@ +--- +date: 2022-06-02 +tag: +- Java +- Daily +--- + # Boolean 还是 boolean? 在 Java 中,对于布尔类型的变量、对象属性或方法参数的定义,到底是用包装类型 Boolean 还是基本类型 boolean 呢? diff --git a/src/java/which-one-is-better-forEach-or-map.md b/src/java/which-one-is-better-forEach-or-map.md index 312f0a61..549ca677 100644 --- a/src/java/which-one-is-better-forEach-or-map.md +++ b/src/java/which-one-is-better-forEach-or-map.md @@ -1,3 +1,10 @@ +--- +date: 2022-04-05 +tag: +- Java +- Daily +--- + # forEach 还是 map? ## 背景 遍历一个集合,在里面执行某种操作后,再依次返回每一个元素,常见的实现方式有: