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. 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)); } }