Java V01 20150107

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.
   如果代码本身包含了一个*/,就不能用 /* 和 */ 将注释括起来。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值