Skip to content

Commit b87afac

Browse files
committed
Add Methods example code
request-checks:true
1 parent 63e9762 commit b87afac

File tree

1 file changed

+13
-0
lines changed
  • src/com/codefortomorrow/intermediate/chapter11/examples

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.codefortomorrow.intermediate.chapter11.examples;
2+
3+
public class Methods {
4+
public static void main(String[] args) {
5+
for (int i = 0; i < 5; i++) {
6+
printMessage();
7+
}
8+
}
9+
10+
public static void printMessage() {
11+
System.out.println("Hello World");
12+
}
13+
}

0 commit comments

Comments
 (0)