Question: Write a java program to input two strings. Display the number of consonants in the first string and the number of vowels (a,e,i,o,u,y) in the

Write a java program to input two strings. Display the number of consonants in the first string and the number of vowels (a,e,i,o,u,y) in the 2nd string. Use at least two methods, one called numberVowels and the other calledstringCapitalize. Display the two strings in alphabetic order with the first letter of each capitalized. For example if the user inputs: tax service, the program outputs: Service has 3 vowels Tax has 2 consonants

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!