Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Vowel or consonant in java using if else

public class Main{public static void main(String[] args) {char ch = 'e';if(ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u' )System.out.println(ch + " is a vowel");elseSystem.out.println(ch + " is a consonant");}}
Source by inlarn.com #
 
PREVIOUS NEXT
Tagged: #Vowel #consonant #java
ADD COMMENT
Topic
Name
6+4 =