/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package inputcharatword; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /** * * @author Student */ public class Main { /** * @param args the command line arguments */ public static void main(String[] args) throws IOException { // TODO code application logic here char[] vowelStr={'a', 'A', 'e', 'E', 'i', 'I', 'o', 'O', 'u', 'U'}; char[] consonantStr={'b','B','c','C','d','D','f','F','g','G','h','H','j','J', 'k','K','l','L','m','M','n','N','p','P','q','Q','r','R','s','S','t', 'T','v','V','w','W','x','X','y','Y','z','Z'}; char[] numStr={'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'}; char[] spaceStr={' '}; String copyFromMe; char copy; int vowel =0; int consonant=0; int num=0; int space=0; String display = ""; String ltr; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter a word/s:"); copyFromMe=br.readLine(); for(int i=0; i