So I need help with this. I'm working with two-dimensional arrays and so what I'm trying to do is to navigate through the 2-d arrays in a row (starting at the top left of the array like you are reading a paragraph).
I trying to write a method that returns the array with the following rules:
1) If the word begins with a vowel (a, e, i, o, u) : swap the word with the previous word on the same row
2) If the word is the first word on the row, then swap it with the word just above it; however, if the word is on the first row, then no swapping should occur.
3) If the word begins with a consonant, then swap the first and last characters of the word.