File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 11import java .util .Scanner ;
2+ import java .util .ArrayList ;
23
34public 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!" );
You can’t perform that action at this time.
0 commit comments