This needs to be in Java.
Write a function takes a string and puts the first letter of each word at the end and adds "ay" to it. This function should be able handle multiple sentences and bypass punctuation and numbers. An example of this would be:
"The cat is so happy right now!" should translate to "heTay, atcay siay osay appyHay ightray ownay!"