@@ -0,0 +1,623 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=12459%0A%0Apublic class EllysNewNickname %7B%0A%09public static int getLength(String nickname) %7B%0A%09%09final String VOWELS = %22aeiouy%22;%0A%09%09%0A%09%09int nickLength = 0;%0A%09%09int consecutiveVowelCount = 0;%0A%09%09%0A%09%09for (int i = 0; i %3C nickname.length(); ++i) %7B%0A%09%09%09boolean currentCharIsVowel = ( VOWELS.indexOf(nickname.charAt(i)) != -1 );%0A%09%09%09%0A%09%09%09if ( !currentCharIsVowel ) %7B%0A%09%09%09%09nickLength++;%0A%09%09%09%09consecutiveVowelCount = 0;%0A%09%09%09%7D%0A%09%09%09else if (currentCharIsVowel) %7B%0A%09%09%09%09consecutiveVowelCount++;%0A%09%09%09%09if (consecutiveVowelCount %3C 2) %7B%0A%09%09%09%09%09nickLength++;%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09return nickLength;%0A%09%7D%0A%7D%0A

Create EllysNewNickname.java