java基本语法之注释

it2023-09-27  77

package com.ff.javabase.day1; /** * 注释:解释说明程序的功能 * 三种方式:单行注释 // 注释的内容 * 多行注释 /* 注释的内容(Ctrl+Shift+/) * / * 文档注释 /** 注释的内容* / */ public class AnnotationDemo { /** * 文档注释:为类、方法(函数)、属性进行说明,在调用时会提示其功能 * @param args */ public static void main(String[] args) { //单行注释 System.out.println(); System.out.println(); /*多行注释*/ System.out.println(); System.out.println(); System.out.println(); } }
最新回复(0)