answersLogoWhite

0

Here's the method to implement:

public static boolean isVowel(char c) {

String s = "" + c, a = "a", e = "e", i = "i", o = "o", u = "u";

if(s.equalsIgnoreCase(a)) return true;

if(s.equalsIgnoreCase(e)) return true;

if(s.equalsIgnoreCase(i)) return true;

if(s.equalsIgnoreCase(o)) return true;

if(s.equalsIgnoreCase(u)) return true;

return false;

}

It returns true if the letter is a vowel, and false if it isn't. Writing code in a text box doesn't guarantee it'll work, but I'm fairly sure it will, haha.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is a constandent?

I believe you mean a consonant and have misspelled it. You can check the related link for more uses of the wordThe word consonant is also used to refer to a letter of an alphabet that denotes a consonant sound. The 21 consonant letters in the English alphabet are B, C, D, F, G, H, J, K, L, M, N, P, Q, R, S, T, V, X, Z, and usually W and Y:


How can you check vowel or consonent in vbnet?

You can check if a character is a vowel or a consonant in VB.NET by using a conditional statement with the Char.ToLower() method to ensure case insensitivity. You can then check if the character is a vowel by comparing it to a list of vowels using the Contains() method, and if it is not a vowel, it is considered a consonant.


Can you recycle porcelain?

Yes, porcelain can be recycled, but it is not as common as recycling materials like glass or plastic. Some recycling facilities may accept porcelain for recycling, but it is important to check with your local recycling program to see if they accept it.


Write a program to adentify whether a character entered by a user is a vowel or a consonant?

You can check the value of a character by using if statements.Also, note that this code does not check for capital letters./* code */#include int main(){char c;c = getc(stdin);if (c 'o') {/* If the character is a vowel, this code will be executed. */} else if (c >= 'a' && c


Do master's credits transfer to a PhD program?

In some cases, master's credits can transfer to a PhD program, but it depends on the specific program and institution. Each program has its own policies regarding credit transfer, so it's important to check with the admissions office of the PhD program you are interested in to see if they accept transfer credits from a master's program.


Does sheetz cash checks?

Most Sheetz convenience stores will accept personal checks. The check must be approved by a manager and it is at her or his discretion whether or not to accept the check.


Does Marshalls accept personal check?

Does marshall accept personal checks


Which lady invented the alphabet block?

The person who invented the kids' playing Alphabet Blocks was Adeline Whitney. To learn more about the invention of the Alphabet Blocks, check out the website below.


What grocery stores accept electronic check?

Electronic stores that accept checks


Can you pay resturants with a check?

Some restaurants do accept check, be sure to ask if you do see a sign indicating whether or not they accept checks.


Will banks accept comdata checks?

yes your local bank can accept comdata check.. they just call and verify the check and autherization code


What type of check does a bank agree in advance to accept when the check is presented for payment?

DRAFT CHEck