Eclipse中的快捷键
单行注释 Ctrl+/
多行注释 Ctrl+Shift+/
文档注释 Shift +Alt+j
1 /** 2 * @author Lenovo 3 * 文档注释 4 */ 5 public class Demo(){ 6 7 public static void main(String[] args){ 8 System.out.println("HelloWord!"); //单行注释 9 /* 10 这里是多行注释 11 */ 12 13 } 14 }