From 87f71fd7df28aadda68541e94233bec29946c437 Mon Sep 17 00:00:00 2001 From: jaywcjlove Date: Thu, 23 Feb 2023 15:35:41 +0000 Subject: [PATCH] doc: Update java.md (#311) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加List和Set集合中打印时使用lamba输出的方式。 23485228102c30e05ad7d31c68f8b59065e54ff7 --- CONTRIBUTORS.svg | 100 ++++++++++++++++++++++++----------------------- docs/java.html | 3 ++ index.html | 9 ++--- 3 files changed, 57 insertions(+), 55 deletions(-) diff --git a/CONTRIBUTORS.svg b/CONTRIBUTORS.svg index 3a0bf11f..7b7da532 100644 --- a/CONTRIBUTORS.svg +++ b/CONTRIBUTORS.svg @@ -60,103 +60,105 @@ + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + \ No newline at end of file diff --git a/docs/java.html b/docs/java.html index dfd63da6..831c9b32 100644 --- a/docs/java.html +++ b/docs/java.html @@ -711,6 +711,8 @@ for (Integer value : nums) { System.out.println(value); } +// lambda 打印元素 +nums.forEach(e -> System.out.println(e.toString()));

HashMap

Map<Integer, String> m = new HashMap<>();
@@ -760,6 +762,7 @@
 for (String element : set) {
     System.out.println(element);
 }
+set.forEach(e -> System.out.println(e.toString()));
 

ArrayDeque

Deque<String> a = new ArrayDeque<>();
diff --git a/index.html b/index.html
index c597169d..47ef174a 100644
--- a/index.html
+++ b/index.html
@@ -793,9 +793,6 @@
 
   hanchZ
 
-
-  DaiN
-
 
   Damao
 
@@ -946,8 +943,8 @@
 
   夜未央
 
-
-  秋雨落
+
+  秋 雨落
 
 
   芦荟柚子茶
@@ -1088,7 +1085,7 @@
 
 

如果你有资源,可以很方便部署 web 版,这非常简单,只需要克隆 gh-pages 分支代码到你的静态服务就可以了,还可以使用 docker 快捷部署 web 版。

-
+