wojiuyishui
/**   
 * 这是文档注释
 * 
 * 
 */


public class Welcome{
    //这是单行注释。mian() 方法是程序的入口
    public static void main(String[] /*行内注释: arguments的单词缩写*/args){
            System.out.println("hello world");//输出你好

            /*多行注释
                System.out.println("hello world");
                System.out.println("hello world");
                System.out.println("hello world");
            */        
    }
}

一定要养成写注释的好习惯

分类:

技术点:

相关文章: