登录

java编程思想第4版中文版的几处谬误?

# Java
高洛峰高洛峰2220 天前613 次浏览

全部回复(3) 我要回复

  • PHPz

    PHPz2017-04-18 10:48:11

    书翻译的不准确,没了!

    这么明显的问题,明明都知道……

    非要别人给你确认一下,你才有自信认为是书的问题而不是自己的问题么?

    回复
    0
  • ringa_lee

    ringa_lee2017-04-18 10:48:11

    英文原文(169页)是:

    It's important that all of the methods in Cleanser are public.

    至于第一个问题,原文(168页)是:

    First, in the Cleanser append() method, Strings are concatenated to s using the += operator, which is one of the operators (along with '+') that the Java designers "overloaded" to work with Strings.

    回复
    0
  • 阿神

    阿神2017-04-18 10:48:11

    翻译的不恰当,应该翻译为“重载”
    如果了解C++的话,就知道这个相当于String类对“+=”操作符进行了重新实现,“+=”可以用来进行字符串拼接。

    回复
    0
  • 取消回复发送