-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Fix:修正 Chap.7 语句问题 #378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix:修正 Chap.7 语句问题 #378
Conversation
oxygenkun
commented
Feb 8, 2020
- 补充了一些术语单词
- 修改了一些语句的语序
|
||
一个 Java 源代码文件称为一个*编译单元*(有时也称*翻译单元*)。每个编译单元的文件名后缀必须是 **.java**。在编译单元中可以有一个 **public** 类,它的类名必须与文件名相同(包括大小写,但不包括后缀名 **.java**)。每个编译单元中只能有一个 **public** 类,否则编译器不接受。如果这个编译单元中还有其他类,那么在包之外是无法访问到这些类的,因为它们不是 **public** 类,此时它们支持主 **public** 类。 | ||
一个 Java 源代码文件称为一个*编译单元(compilation unit)*(有时也称*翻译单元(translation unit)*)。每个编译单元的文件名后缀必须是 **.java**。在编译单元中可以有一个 **public** 类,它的类名必须与文件名相同(包括大小写,但不包括后缀名 **.java**)。每个编译单元中只能有*一个* **public** 类,否则编译器不接受。如果这个编译单元中还有其他类,那么在包之外是无法访问到这些类的,因为它们*不是* **public** 类,此时它们为主 **public** 类提供“支持”类 。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
,因为它们不是
z这个为什么要家斜体?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
原文是斜体
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个就不要管他了。
你前面用斜体的时候明显是想表达专业术语。在这么一个“不是”加斜体会很奇怪的。不用要求什么都和原文一一致。
看国内技术读物的时候你也会发现。只有少部分名词才会用特殊符号标注
|
||
类库是一组类文件。每个源文件通常都含有一个 **public** 类和任意数量的非 **public** 类,因此每个文件都有一个构件。如果把这些组件集中在一起,就需要使用关键字 **package**。 | ||
类库是一组类文件。每个源文件通常都含有一个 **public** 类和任意数量的非 **public** 类,因此每个文件都有一个 **public** 组件。如果把这些组件集中在一起,就需要使用关键字 `package`。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这种为啥要改成 ``。。。这个排版格式还是遵循以前的吧。除非你打算把整本书的格式都改了。不然一堆前后不一致的。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我看的第一章在提到“关键字”的术语时候,会使用``,我已经凌乱了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这部分先保持原有不变吧。现在确实也是乱糟糟的。
目前讨论的是
- 方法使用 `` 标注
- 其他都使用加粗
- 斜体的使用就很随意。。基本上就看每个人翻译的心情想不想加了。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的
@@ -230,9 +230,9 @@ java.util.Vector v = new java.util.Vector(); | |||
|
|||
具备了以上知识,现在就可以创建自己的工具库来减少重复的程序代码了。 | |||
|
|||
一般来说,我会使用反转后的域名来命名要创建的工具包,比如 **com.mindviewinc.util**,但为了简化,这里我把工具包命名为 **onjava**。 | |||
一般来说,我会使用反转后的域名来命名要创建的工具包,比如 `com.mindviewinc.util` ,但为了简化,这里我把工具包命名为 **onjava**。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里
@@ -159,7 +159,7 @@ C:\DOC\Java\com\mindviewinc\simple | |||
|
|||
(注意,本书的每个文件的第一行注释都指明了文件在源代码目录树中的位置——供本书的自动代码提取工具使用。) | |||
|
|||
如果你回头看这个路径,会看到包名 **com.mindviewinc.simple**,但是路径的第一部分呢?CLASSPATH 环境变量会处理它。我机器上的环境变量部分如下: | |||
如果你回头看这个路径,会看到包名 `com.mindviewinc.simple`,但是路径的第一部分呢?CLASSPATH 环境变量会处理它。我机器上的环境变量部分如下: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里