It outputs the entire prayer well, with the following output for the first two lines:
redocay inhay unumhay eumday
atrempay omnipotentemhay

However, in true Pig Latin, monosyllabic words stay the same and have "hay" added to the end, so it becomes ithay, egg becomes egghay, but multi syllabic words have way added to the end instead, so archery becomes "archeryway" and ending becomes "endingway".

Is there a way for Java (and the scanner class I'm using) to detect if a word is monosyllabic?

At this point I'll also point out I'm only a beginner programmer, so if there is but it is extraordinarily complicated, feel free to just say that!!