Skip to content

Commit 9cf9119

Browse files
WAP to print your name and call the function from main method
1 parent 60216ad commit 9cf9119

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

javaBasic/CallFunction.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,17 @@
22

33
public class CallFunction {
44

5-
public static void main(String[] args) {
65
// TODO Auto-generated method stub
76
//Que.6:Write a function to print your name and call the function from main method
87

9-
10-
/* public class Main {
8+
119
static void myMethod() {
1210
System.out.println("I just got executed!");
1311
}
1412

1513
public static void main(String[] args) {
1614
myMethod();
17-
}
18-
}*/
15+
1916
}
2017

2118
}

0 commit comments

Comments
 (0)