Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

alphabet n vowelin java

import java.util.Scanner;
public class VowelOrConsonant {
   public static void main(String args[]){
      System.out.println("Enter a character :");
      Scanner sc = new Scanner(System.in);
      char ch = sc.next().charAt(0);
      if(ch == 'a'|| ch == 'e'|| ch == 'i' ||ch == 'o' ||ch == 'u'||ch == ' '){
         System.out.println("Given character is an vowel");
      }else{
         System.out.println("Given character is a consonant");
      }
   }
}
Comment

PREVIOUS NEXT
Code Example
Java :: how to convert a string of characters to a stream of binary characters binary 
Java :: android studio hide linearlayout 
Java :: mobile network ip address permission android 
Java :: ClassNotFoundException: org.springframework.ui.freemarker.FreeMarkerConfigurationFactory 
Java :: android arraylist to comma separated string 
Java :: how to set java path in windows 10 
Java :: org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:876) 
Java :: locked screen android studio 
Java :: minecraft fabric client message 
Java :: spring data sql not utf8 
Java :: java unique queue 
Java :: display two dimensional array java 
Java :: fullscreen libgdx 
Java :: jackson deserialization fail-on-unknown-properties true 
Java :: how to know if a file is iso-8859-1 encoded in java 
Java :: export java path in ubuntu 
Java :: types of methods in java 
Java :: border swing 
Java :: could not load main class java 
Java :: how to create dynamic string array in java 
Java :: Java Creating a TreeMap 
Java :: java program to search item from name in class 
Java :: where to use findviewbyid in fragment 
Java :: bool in java 
Java :: java split on { 
Java :: java stream loop through list 
Java :: fragment call activity 
Java :: set web image to imageview android java 
Java :: control structures in java 
Java :: get selected item spinner 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =