This is an updated version of my previous Java programprevious Java program that asks the user for a sentence and then separates the words and then converts the sentence into Pig Latin. My previous program was working, but there was some tweakingtweeking that needed to be done which I did after getting positive feedback. Apparently, my loop in the separateWordsseparateWords function was checking for capital letters twice or so. I have included the instructions for the assignment for reference and the code for peer edit. Thank you.