JJ logo

Lab 3 Hints

.

Lab 3.2 Hints:

Hint: Being told that there are exactly three words
allows you to implement a hardcoded solution.

Hint: Words are separated by spaces.

Hint: indexOf() is a good way to
locate the delimeters in the phrase.

Hint: substring() is a good way to
extract words once its location is determined.

Hint: The + operator is a good way to
concatenate strings.

Hint: First identify the start and end position of each word.
Then, extract the words.
Finally, reverse the words.