Skip to content

Commit a7fb34d

Browse files
Comments
1 parent ebc6688 commit a7fb34d

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package com.examplehub.basics;
2+
3+
public class Comments {
4+
5+
/**
6+
* Driver Code
7+
*
8+
* @param args the arguments passed to main function
9+
*/
10+
public static void main(String[] args) {
11+
System.out.println("This is a single comment"); // Single-line comments start with two forward slashes (//).
12+
System.out.println("This is a another single comment"); /* single or multi line */
13+
14+
/*
15+
*This is a multi-line comments.
16+
* This will print ExampleHub.
17+
*/
18+
System.out.println("ExampleHub");
19+
}
20+
}

0 commit comments

Comments
 (0)