public class PigLatin { public boolean isVowel(char myLetter) { if (char == 'a') return true; if (char == 'e') return .... //the same for e, i, o, u, and y return false; } public static void main (String [] args){ String word = args[0]; int counter = 0; int cyc = 0; while (counter < word.length()) { if (counter == 0) { //We are on the first letter. // Figure out if the first letter is a vowel. if (isVowel(word.charAt(counter)) { // Check and see if it is a 'y', and if it has a vowel after it, etc } } else { // We are not on the first letter } counter++; //counter = counter + 1; } }}