In Java.This program will translate a word into pig-latin.Pig-latin is a language game in which words in English are altered,usually by removing letters from the beginning of a word andarranging them into a suffix. The rules we will use for thepig-latin in this program are as follows: If a word starts with aconsonant, split the word at the first instance of a vowel, movingthe beginning consonants to the end of the word, following a '-'.Then add 'ay' at the end of the word. Vowels are: a, e, i, o, u(Notice: We are not considering y a vowel for this program) If aword starts with a vowel add the word \"yay\" at the end of the wordfollowing a '-'. Examples: hello translates to ello-hay flaretranslates to are-flay it translates to it-yay A more detailedexplanation of the requirements for each method will be in themethod header comments - please follow these closely. Suggestedorder of completion: isVowel() then pigLatin().