forked from code4tomorrow/java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathComments.java
More file actions
38 lines (27 loc) · 895 Bytes
/
Comments.java
File metadata and controls
38 lines (27 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.codefortomorrow.beginner.chapter1.practice;
/**
* @author ArmeetJatyani
* March 2021
*
* You'll be writing your first ever comment today!
* What we'll go over:
* - single line comments
* - multi line comments
*/
// a class is an "object" where we will place all our code inside
public class Comments {
// the main method (below) is the first thing that runs when your program is run
public static void main(String[] args) {
// this is a single line comment, I can write anything here
// single line comments aren't run by Java!
// they can be used to annotate your code!
/**
* this is a multi
* line
* comment
*
* It can span across multiple lines!
*/
// YOUR ASSIGNMENT: write 1 single-line comment and 1 multi-line comment on the lines below...
}
}