7. Write a Java program to input any alphabet and check whether it is vowel or consonant. Static Solution :- class vowel { public static void main(String args[]) { String ch ="F"; if(ch =="a"||ch =="e"||ch =="i"||ch =="o"||ch =="u"||ch =="A"||ch =="E"||ch =="I"||ch =="O"||ch =="U") { System.out.println("It is Vowel :- "+ch); } else { System.out.println("It is not a Vowel :- "+ch); } } } Output :- Dynamic Solution :- import java.util.*; class vowel { public static void main(String args[]) { ...
All computer course for class 9th to 12th with proper practical and theory .........