+ 1
why error am just calling a method inside main
public class program{ public static void main(String[]args){ public static void Fun(){ int a = 15; int b = 15; System.out.println(a+b); } Fun(); } }
2 Answers
+ 2
all right thankx for explain
+ 1
so we can't create a method inside main