GTU JAVA Practical 6
Write a program that prompts the user to enter a letter and check whether a letter is a vowel or constant.
					import java.util.Scanner;
class Practical_6 {
  public static void main(String[] args) {
    Scanner input = new Scanner(;
    System.out.print("Enter Character : ");
    char ch =;
    switch (Character.toLowerCase(ch)) {
    case 'a':
    case 'e':
    case 'i':
    case 'o':
    case 'u':
      System.out.print(ch + " is vowel");
      System.out.print(ch + " is constant");
Java program to find whether given character is vowel or consonant