Code:
public class StringThing
{
public static String noVowel(String stringToUse)
{
String output = "";
for(int x = 0 ; x < stringToUse.length() ; x++)
{
char charToCheck = stringToUse.charAt(x);
if (!(charToCheck == 'A' || charToCheck == 'E'
|| charToCheck == 'I' || charToCheck == 'O'
|| charToCheck == 'a' || charToCheck == 'e'
|| charToCheck == 'i' || charToCheck == 'o'
|| charToCheck == 'u'))
{
output = output + stringToUse.charAt(x);
}
}
return output;
}
}
Here is what I came up with, if you care. It isn't very good, so I wouldn't copy it.