《编程珠玑》的笔记。 作者 Jon Bentley 推荐的阅读方法,因此每次完成一章,重点是自己思考习题。 One hint about reading the essays: don’t go too fast. Read them carefully, one per sitting. Try the problems as they are posed — some
Generics
Effective Java 的笔记,代码、英语原文为主,批注、翻译为辅。 Item 26: Don’t use raw types 请不要使用原始类型( raw types 实在不知道该怎么翻译🤷🏻♀️,中文版书籍译为原
implement Comparable
Effective Java 的笔记,代码、英语原文为主,批注、翻译为辅。 Item 14: Consider implementing Comparable 考虑实现 Comparable 接口 Virtually all of the value classes in the Java platform libraries, as well as all enum types, implement Comparable. If you are writing a value class with an obvious natural ordering, such as alphabetical