it doesn't realize that there is an if statement when i type a consonant.
and also when i type e, it realizes that its a consonant.

Also when i enter "a" it produces the if statment for string vowel and the else statement.
same with captial letter "A" but this time it produces the else twice.

```
import javax.swing.JOptionPane;

public class R
{
    public static void main(String args[])
    {
        String[] vowels = {"a","e","i","o","u"};
        String[] vowel = {"A","E","I","O","U"};
        String InputVowel = JOptionPane.showInputDialog(null,"Enter a Character: ");
        for (int x=0;x<vowels.length;x++)
        {
            if(InputVowel.equals (vowels[x]))
                JOptionPane.showMessageDialog(null,InputVowel+" is a lowercase");
            if(InputVowel.equals(vowel[x]))
                JOptionPane.showMessageDialog(null,InputVowel+" is an uppercase");
            else
                x = 5;
                JOptionPane.showMessageDialog(null,InputVowel+" is a consaunant");
        }
    }
}

```