Each function is defined as a static method.
return text.toUpperCase();
String vowels = "aeiouAEIOU"; int result = 0; for( int i = 0; i < text.length(); i++ ) { if( vowels.indexOf( text.charAt( i ) ) != -1 ) { result++; } } return result;
return new StringBuffer( text ).reverse().toString();