From 6f008fc3926248cee779b2c1195f6192d5208640 Mon Sep 17 00:00:00 2001 From: Mars Lee <43533800+codeOflI@users.noreply.github.com> Date: Sat, 4 Dec 2021 10:41:55 +0800 Subject: [PATCH 1/2] Update Ex_1_1.md --- Ch_1_1/Ex_1_1.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ch_1_1/Ex_1_1.md b/Ch_1_1/Ex_1_1.md index 5c52d67..12e0918 100644 --- a/Ch_1_1/Ex_1_1.md +++ b/Ch_1_1/Ex_1_1.md @@ -308,7 +308,7 @@ public class Ex_1_08 { // b char 类型 转换为 98, c 转换为99 System.out.println('b'+'c'); - // e : 'a' char to int , 97, 97+4=111, 111 to char = e + // e : 'a' char to int , 97, 97+4=101, 101 to char = e System.out.println((char)('a'+4)); } } @@ -348,4 +348,4 @@ for (int i = 0; i < 10; i++) a[i] = i * i; ### 分析: -It does not allocate memory for a\[\] with new. This code results in a variable a might not have been initialized compile-time error. \ No newline at end of file +It does not allocate memory for a\[\] with new. This code results in a variable a might not have been initialized compile-time error. From 91d21a9ee69e4b9220ae2319c61680b76121905f Mon Sep 17 00:00:00 2001 From: Mars Lee <43533800+codeOflI@users.noreply.github.com> Date: Sat, 4 Dec 2021 10:49:26 +0800 Subject: [PATCH 2/2] Update Ex_1_1_08.java modify comment --- Ch_1_1/Ex_1_1_08.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ch_1_1/Ex_1_1_08.java b/Ch_1_1/Ex_1_1_08.java index 9abb2c6..edecae9 100644 --- a/Ch_1_1/Ex_1_1_08.java +++ b/Ch_1_1/Ex_1_1_08.java @@ -19,7 +19,7 @@ public static void main(String[] args) { // b char 类型 转换为 98, c 转换为99 System.out.println('b'+'c'); - // e : 'a' char to int , 97, 97+4=111, 111 to char = e + // e : 'a' char to int , 97, 97+4=101, 101 to char = e System.out.println((char)('a'+4)); } }