Answer:
Following are attached images that will help you understand the complete code. The code is tested with different variables and different outputs are obtained. All the necessary description is given in the form o comments inside the code.
Explanation:
Well potential energy is energy that is in a object while its not moving so i would go your third option
Paste Link lets you automatically update the referenced document.
Answer:
Answer is in the provided screenshot!
Explanation:
Steps required to solve this problem:
1 - define what characters are "vowels" by assigning them to an array.
2 - create a variable to record the amount of vowels there are in the string.
3 - convert the input string into a character array and iterate through each character
4 - for each of the character of the string we go through, check if it matches any of the vowels
5 - return true if the vowel count is greater than 1
Alternative methods using the Java Stream API have also been wrote, please respond if you require them.