Friday, 17 May 2013

JAVA Create a Function And Call it

class file_name{

        public static void main(String ar[]){


                  System.out.println("call print function");

                  call();
        }

        static void call(){

                   System.out.println("The Function is called");
        }
}


OutPut
------------------------
call print function
The Function is called

No comments:

Post a Comment