添加代码程序的注释示例

This commit is contained in:
YuCheng Hu 2018-11-20 16:00:17 -05:00
parent f4ca94a24b
commit 2f3eef3c77
2 changed files with 7 additions and 3 deletions

View File

@ -1,7 +1,7 @@
package com.ossez.lang.tutorial.overview;
/**
* Java Tutorial Enums
* Java Tutorial
*
* @author YuCheng
*
@ -18,6 +18,5 @@ public class FreshJuiceEnums {
public static void main(String[] args) {
FreshJuice juice = new FreshJuice();
juice.size = FreshJuice.FreshJuiceSize.MEDIUM;
System.out.println("Size: " + juice.size);
}
}

View File

@ -3,11 +3,16 @@ package com.ossez.lang.tutorial.overview;
/**
* Java Tutorial
*
* This is my first java program. This will print 'Hello World' as the output This is an example of multi-line comments
*
* @author YuCheng
*
*/
public class HelloWorld {
public static void main(String[] args) {
// This is an example of single line comment
/* This is also an example of single line comment. */
System.out.println("Hello World");
}
}