1. general syntax:通用语法
function calls:函数调用
2. pass the method a string parameter:传给这个函数一个字符串参数
3. double quotes:双引号
Java uses double quotes to delimit strings. java用双引号去分隔字符串。
4. Even if a method takes no paraments, you must still use empty parentheses.
对于一个方法,即使没有参数也需要书写圆括号。
5. You can add as many comments as needed without fear of bloating the code.
可以在源程序中根据需要添加任意多的注释,而不必担心可执行代码会膨胀。
6. Java has three ways of marking comments.
java有三种方法用来书写注释。
7. block off: 隔开
You can use the /* and */ comment delimiters that let you block off a longer comment.
可以使用 /* 和 */ 将一段比较长的注释括起来。
8. /* */ comments do not nest in Java.
在Java中,/* */ 注释不能嵌套。
9. You cannot deactivate code simply by surrounding it with /* and */ because the code that you want to deactivate might itself contain a */ delimiter.
如果代码本身包含了一个*/,就不能用 /* 和 */ 将注释括起来。
function calls:函数调用
2. pass the method a string parameter:传给这个函数一个字符串参数
3. double quotes:双引号
Java uses double quotes to delimit strings. java用双引号去分隔字符串。
4. Even if a method takes no paraments, you must still use empty parentheses.
对于一个方法,即使没有参数也需要书写圆括号。
5. You can add as many comments as needed without fear of bloating the code.
可以在源程序中根据需要添加任意多的注释,而不必担心可执行代码会膨胀。
6. Java has three ways of marking comments.
java有三种方法用来书写注释。
7. block off: 隔开
You can use the /* and */ comment delimiters that let you block off a longer comment.
可以使用 /* 和 */ 将一段比较长的注释括起来。
8. /* */ comments do not nest in Java.
在Java中,/* */ 注释不能嵌套。
9. You cannot deactivate code simply by surrounding it with /* and */ because the code that you want to deactivate might itself contain a */ delimiter.
如果代码本身包含了一个*/,就不能用 /* 和 */ 将注释括起来。