添加代码程序的注释示例
This commit is contained in:
parent
f4ca94a24b
commit
2f3eef3c77
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue