Code Below:


import java.util.*;
class function_overloading
{
    void check(String str,char ch)
    {
        int c=0,l=str.length();
        for (int i=0;i< l;i++)
        if (ch==str.charAt(i))
        c++;
        System.out.println("No. of "+ch+" ="+c);
    }
    void check(String s1)
    {
        int l=s1.length();
        for (int i=0;i< l;i++)
        {
            char ch=s1.charAt(i);
            if (ch=='a'|| ch=='e'||ch=='i'||ch=='o'||ch=='u')
            System.out.print(ch+ " ");
        }
    }
    public static void main()
    {
        function_overloading obj=new function_overloading();
        obj.check("success",'s');
        obj.check("computer");
    }
}