Alright I am to write a program that when you enter a sentence it gives you the piglatin of the sentence and the directions for that include
If there are no vowels in the English word, then the Pig Latin word is just the English word + "ay." (There are 10 vowels: 'a,' 'e,' 'i,' 'o,' and 'u,' and their upper-case counterparts.)
Else, if the English word begins with a vowel, then the Pig Latin word is just the English word + "yay."
Otherwise (if the English word has a vowel in it and yet doesn't start with a vowel), then the Pig Latin word is end + start + "ay," where end and start are defined as follows.
Let start be all of the English word up to (but not including) its first vowel.
Let end be all of the English word from its first vowel on.
But, if the English word is capitalized, then capitalize end and "uncapitalize" start.
alright, I have no clue what to do

I knooooow how to make the program ask you to enter the sentence but that's about it. How to change it to a piglatin, I have no clue..
so farrr i have
CODE
import java.util.Scanner;
public class Piglatinator
{
public static void main(String [] args)
{
System.out.println("Welcome to the Piglatinator Translator!");
String str, another = "y";
Scanner scan = new Scanner(System.in);
while(another.equalsIgnoreCase("y"))
{
System.out.println("Enter an English phrase: ");
str = scan.nextLine();
System.out.println();
System.out.println("Right another message(y/q)? ");
another = scan.nextLine();
}
}
}
help plz!!!! oh and I also have a question on reverse recursions..but first I want to get through thisssss..im such a noob