All pastes #372547 Raw Edit

Something

public java v1 · immutable
#372547 ·published 2007-02-26 04:06 UTC
rendered paste body
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;                }        }}