Skip to content

第3章 勘误 #367

@ghost

Description

  • 对象创建 - 高精度数值

或者你也可以使用下面的形式,基本类型自动转换成包装类型(自动装箱):

Character ch = new Character('x');

这句代码没用到自动装箱,应改为Character ch = 'x';

  • 程序编写 - 命名可见性

在 Java 1.0 和 Java 1.1 中,域扩展名 com、 edu、 org 和 net 等按惯例大写,因此类库中会出现这样类似的名称:com.mindviewinc.utility.foibles。

按语义,com应大写,应改为Com.mindviewinc.utility.foibles

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