Skip to content

Commit ae3f26c

Browse files
committed
Practice Done.
Signed-off-by: Someshdiwan <Someshdiwan369@gmail.com>
1 parent c10bd85 commit ae3f26c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
public class RecursionIsCool {
2+
public static void main(String[] args) {
3+
//calling a method sayHi.
4+
sayHi();
5+
//Method called it-self.
6+
}
7+
public static void sayHi() {
8+
System.out.println("Hi");
9+
//Method called inside(it-self).
10+
sayHi();
11+
}
12+
}

0 commit comments

Comments
 (0)