Skip to content

【纸质书勘误】第10章集合类代码与结果错误 #194

Open
@Bienaore

Description

@Bienaore

版次:2022年5月第1版
印次:2022年6月第2次印刷

问题1:
页码:157页
章节:
10.5为什么ArrayList的subList结果不能转换成ArrayList
2.视图有什么问题
1)非结构性改变subList

其中代码为:
...
System.out.println("subList.set(1,666) 得到List:");
...
结果为:
subList.set(3,666) 得到List:

问题2:
页码:188页
章节:
10.16HashMap的hash()方法
“下面通过具体的示例来详细解析,如图10-13所示。“下方
10 & 8 = 2 , 10 & 7 = 2

这里原意应该是:
10 % 8 = 2 ,10 & 7 = 2
吧?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions