注释 1.单行注释 //this is a comment 2.多行注释 /*this is a comment*/ 3.文档注释 用于生成程序的api文档,可以写在方法或者类上 /** *@author mingcaixiao *@version 1.0 */