Skip to content

Commit 90453ba

Browse files
committed
Level 1 - Greet, Echo & Exit
1 parent 913d8dd commit 90453ba

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/main/java/Duke.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import java.util.Scanner;
2+
import java.util.ArrayList;
23

34
public class Duke {
45
public static void main(String[] args) {
@@ -21,7 +22,9 @@ public static void main(String[] args) {
2122
exit();
2223
}
2324

24-
// prints greeting to user
25+
/**
26+
* prints greeting to user
27+
*/
2528
public static void greet() {
2629
System.out.println(" ------------------------------------------------------------");
2730

@@ -40,14 +43,19 @@ public static void greet() {
4043
System.out.println(" ------------------------------------------------------------");
4144
}
4245

43-
// echos user's command
46+
/**
47+
* echos user's command
48+
* @param comm command given by user
49+
*/
4450
public static void echo(String comm) {
4551
System.out.println(" ------------------------------------------------------------");
4652
System.out.println(" " + comm);
4753
System.out.println(" ------------------------------------------------------------");
4854
}
4955

50-
// exits
56+
/**
57+
* exits
58+
*/
5159
public static void exit() {
5260
System.out.println(" ------------------------------------------------------------");
5361
System.out.println(" See you later!");

0 commit comments

Comments
 (0)