Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Ch_1_1/Ex_1_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
Expand Down Expand Up @@ -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.
It does not allocate memory for a\[\] with new. This code results in a variable a might not have been initialized compile-time error.
2 changes: 1 addition & 1 deletion Ch_1_1/Ex_1_1_08.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}