We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebc6688 commit a7fb34dCopy full SHA for a7fb34d
1 file changed
src/main/java/com/examplehub/basics/Comments.java
@@ -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