@@ -0,0 +1,2381 @@
+// single class with multiple functions%0A%0Aimport java.lang.*;%0Apublic class function_delays %7B%0A    function_delays() %7B%0A        // do nothing%0A    %7D%0A    void functiondelay() %7B%0A        System.out.println(%22function1 exited. %5Cn%22);%0A    %7D%0A%0A    void functiondelay2() %7B%0A        // adding time delays%0A        for(int i=0; i%3C10; i++) %7B%0A            System.out.println(%22Time delay begins for function2...%22 +i);%0A            try %7B%0A                Thread.sleep(600);%0A            %7D catch (InterruptedException ie) %7B%0A                System.out.println(ie.getMessage());%0A            %7D%0A        %7D%0A        System.out.println(%22function2 exited in 10 seconds. %5Cn%22);%0A    %7D%0A%0A    void functiondelay3() %7B%0A        // adding time delays%0A        for(int i=0; i%3C10; i++) %7B%0A            System.out.println(%22Time delay begins for function3...%22 +i);%0A            try %7B%0A                Thread.sleep(600);%0A            %7D catch (InterruptedException ie) %7B%0A                System.out.println(ie.getMessage());%0A            %7D%0A        %7D%0A        System.out.println(%22function3 exited in 10 seconds. %5Cn%22);%0A    %7D%0A%0A    void functiondelay4() %7B%0A        // adding time delays%0A        for(int i=0; i%3C10; i++) %7B%0A            System.out.println(%22Time delay begins for function4...%22 +i);%0A            try %7B%0A                Thread.sleep(600);%0A            %7D catch (InterruptedException ie) %7B%0A                System.out.println(ie.getMessage());%0A            %7D%0A        %7D%0A        System.out.println(%22function4 exited in 10 seconds. %5Cn%22);%0A    %7D%0A%0A    void functiondelay5() %7B%0A        // adding time delays%0A        for(int i=0; i%3C10; i++) %7B%0A            System.out.println(%22Time delay begins for function5...%22 +i);%0A            try %7B%0A                Thread.sleep(600);%0A            %7D catch (InterruptedException ie) %7B%0A                System.out.println(ie.getMessage());%0A            %7D%0A        %7D%0A%0A        System.out.println(%22function5 exited in 10 seconds. %5Cn%22);%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        function_delays f1 = new function_delays();%0A        f1.functiondelay();%0A%0A        function_delays f2 = new function_delays();%0A        f2.functiondelay2();%0A%0A        function_delays f3 = new function_delays();%0A        f3.functiondelay3();%0A%0A        function_delays f4 = new function_delays();%0A        f4.functiondelay4();%0A%0A        function_delays f5 = new function_delays();%0A        f5.functiondelay5();%0A    %7D%0A%7D%0A%0A// Submitted by Aswini.S

add single class with multiple functions