†Asian Ins†i†u†e Of Compu†er Studies†
†Asian Ins†i†u†e Of Compu†er Studies†

Consonants and Vowels Downlo10
Please Register To Log in...
†Asian Ins†i†u†e Of Compu†er Studies†
†Asian Ins†i†u†e Of Compu†er Studies†

Consonants and Vowels Downlo10
Please Register To Log in...
†Asian Ins†i†u†e Of Compu†er Studies†
Would you like to react to this message? Create an account in a few clicks or log in to continue.

†Asian Ins†i†u†e Of Compu†er Studies†


 
HomeGalleryLatest imagesSearchRegisterLog in
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
†AE1DA†MixPOD†

Latest topics
» JAVA CALCULATE
Consonants and Vowels I_icon_minitimeMon Sep 17, 2012 2:14 pm by †`Li†o`†

» Grid Layout
Consonants and Vowels I_icon_minitimeMon Aug 13, 2012 3:43 pm by †`Li†o`†

» Flow Layout
Consonants and Vowels I_icon_minitimeMon Aug 13, 2012 3:41 pm by †`Li†o`†

» Border Layout
Consonants and Vowels I_icon_minitimeMon Aug 13, 2012 3:38 pm by †`Li†o`†

» InputStreamAndOutputStream
Consonants and Vowels I_icon_minitimeMon Aug 13, 2012 3:31 pm by †`Li†o`†

» Triangles Task 1 & 2
Consonants and Vowels I_icon_minitimeMon Jul 23, 2012 3:32 pm by †`Li†o`†

» Java Central and Sub Class
Consonants and Vowels I_icon_minitimeMon Jul 09, 2012 3:40 pm by †`Li†o`†

» Payroll Code Part 2
Consonants and Vowels I_icon_minitimeMon Jul 02, 2012 4:03 pm by †`Li†o`†

» pakyu to .i.
Consonants and Vowels I_icon_minitimeMon Jun 25, 2012 4:20 pm by `jhajha lanqs`

» Payroll Code
Consonants and Vowels I_icon_minitimeMon Jun 25, 2012 3:58 pm by †`Li†o`†

» this is it ! xDD !!
Consonants and Vowels I_icon_minitimeTue Feb 28, 2012 8:11 am by `jhajha lanqs`

» Summary/ Plot Of DATE MOVIE!!
Consonants and Vowels I_icon_minitimeTue Feb 28, 2012 8:06 am by †`Li†o`†

» about valentines day !
Consonants and Vowels I_icon_minitimeFri Feb 17, 2012 7:24 am by `jhajha lanqs`

» cos3 Number Guessing Game !
Consonants and Vowels I_icon_minitimeMon Feb 13, 2012 7:49 am by @†`JeRoLD`†

» eto yown e....
Consonants and Vowels I_icon_minitimeMon Feb 13, 2012 6:22 am by †`Li†o`†

Top posters
†`Li†o`† (80)
Consonants and Vowels I_vote_lcapConsonants and Vowels I_voting_barConsonants and Vowels I_vote_rcap 
`jhajha lanqs` (42)
Consonants and Vowels I_vote_lcapConsonants and Vowels I_voting_barConsonants and Vowels I_vote_rcap 
Jasper ! (12)
Consonants and Vowels I_vote_lcapConsonants and Vowels I_voting_barConsonants and Vowels I_vote_rcap 
@†`JeRoLD`† (9)
Consonants and Vowels I_vote_lcapConsonants and Vowels I_voting_barConsonants and Vowels I_vote_rcap 
hEEcHuL05 (9)
Consonants and Vowels I_vote_lcapConsonants and Vowels I_voting_barConsonants and Vowels I_vote_rcap 
†.frAnCis.† (6)
Consonants and Vowels I_vote_lcapConsonants and Vowels I_voting_barConsonants and Vowels I_vote_rcap 
jenny (5)
Consonants and Vowels I_vote_lcapConsonants and Vowels I_voting_barConsonants and Vowels I_vote_rcap 
†Yaphe†S† (3)
Consonants and Vowels I_vote_lcapConsonants and Vowels I_voting_barConsonants and Vowels I_vote_rcap 
Lhuisi†0 (1)
Consonants and Vowels I_vote_lcapConsonants and Vowels I_voting_barConsonants and Vowels I_vote_rcap 
julie cko (1)
Consonants and Vowels I_vote_lcapConsonants and Vowels I_voting_barConsonants and Vowels I_vote_rcap 
May 2024
MonTueWedThuFriSatSun
  12345
6789101112
13141516171819
20212223242526
2728293031  
CalendarCalendar

 

 Consonants and Vowels

Go down 
AuthorMessage
†`Li†o`†
Admin
†`Li†o`†


Male Scorpio Posts : 80
Points : 168
Reputation : 9
Birthday : 1995-11-16
Join date : 2011-08-31
Age : 28
Location : Mayapa Calamba Laguna
Job/hobbies : Playing Computer Games.

Consonants and Vowels Empty
PostSubject: Consonants and Vowels   Consonants and Vowels I_icon_minitimeMon Feb 06, 2012 7:02 am

Quote :
import java.lang.String;
import java.io.*;
import java.util.*;

class CountVowels{

public static void main(String args[])throws IOException{
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter the String:");
String text = bf.readLine();
int count = 0 , count1 = 0;
for (int i = 0; i < text.length(); i++) {
char c = text.charAt(i);
if (c=='a' || c=='e' || c=='i' || c=='o' || c=='u') {
count++;
}
if (c=='b' || c=='c' || c=='d' || c=='f' || c=='g' || c=='h' || c=='j' || c=='k' || c=='l' || c=='m' || c=='p' || c=='q' || c=='r' || c=='s' || c=='t' || c=='v' || c=='w' || c=='x' || c=='y' || c=='z' || c=='n'){
count1++;
}
}
System.out.println("There are" + " " + count + " " + "vowels");
System.out.println("There are" + " " + count1 + " " + "consonants");
}
}
Back to top Go down
https://ae3ea.forumtl.com
 
Consonants and Vowels
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
†Asian Ins†i†u†e Of Compu†er Studies† :: †AE1DA†Computer†Programming†Section† :: †JAVA†-
Jump to: