本文共 305 字,大约阅读时间需要 1 分钟。
2020 1/17
伙计们注意啦:常量名一般使用大写字符 eg:final String LOVE=“我爱你”;
类名——首字母大写,且按驼峰命名规则起名,必须有
注释
- 文档注释 /**。。。。。。。。*/
- 多行注释 /。。。。。。。。。/
- 单行注释 // PS:使用文档注释时还可以使用 javadoc 标记,生成更详细的文档信息: @author 标明开发该类模块的作者 @version 标明该类模块的版本 @see 参考转向,也就是相关主题 @param 对方法中某参数的说明 @return 对方法返回值的说明 @exception 对方法可能抛出的异常进行说明
看到最后的帮忙点个赞👍🙏 谢谢!
转载地址:http://vxqwi.baihongyu.com/