Question – 8
class Question8
{
    void check(String str, char ch)
    {
        int fr=0;
        for(int i=0;i < str.length();i++)
        {
            char chr=str.charAt(i);
            if(ch==chr)
                fr++;            
        }
        System.out.println("Number of "+ch+" present is = "+fr);
    }

    void check(String s1)
    {
        s1=s1.toLowerCase();
        for(int i=0;i < s1.length();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()
    {
        Question8 ob = new Question8();
        ob.check("success",'s');
        ob.check("computer");
    }
}