As you can see, I have tried in my own unusual way but i am asking you, can you help me to know where i was wrong in the below code, please.
public class vow {
    static void myvow(String name) {
        int count = 0;
        String[] vowels = {"a", "e", "i", "o", "u"};
        
        int n = name.length();
        for (int i = 0; i == n; i++) {
            String check = name.substring(i, i + 1);
            for (String in : vowels) {
                if (in == check) {
                    count = count + 1;
                }
            }
        }
        System.out.println(count);
    }
    public static void main(String[] args) {
        myvow(" aeiou");
    }
}
 
    