Write a program that has a method named findSmallest which accepts a vector of 6 jokes and return the smallest one among them . If there are multiple smalleststrings, the method may return any one of them. The strings are as follows:
• Where do cows go for entertainment? To the mooovies!
• What did one firefly say to the other? You glow, girl!
• Why did the cookie go to the doctor? It was feeling crumby
• How does the ocean say hello? It waves!
• What did the tree say to the wind? Leaf me alone!
• Which letter of the alphabet has the most water? The "C"!
possible output All jokes in vector allJokes are: Where do cows go for entertainment? To the mooovies! What did one firefly say to the other? You glow, girl! Why did the cookie go to the doctor? It was feeling crumby How does the ocean say hello? It waves! What did the tree say to the wind? Leaf me alone! Which letter of the alphabet has the most water? The "C"! Smallest joke is: How does the ocean say hello? It waves! Hint: you may use add() and get () methods from the Vector class, and length () method from the String class.