1.2 Java中的注释

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 }        

 

posted @ 2017-08-27 21:41  CosmosRay  阅读(174)  评论(0编辑  收藏  举报