((String + Loop + method) Write a Java program to meet the following requirements:
1. Prompt the user to enter three strings by using nextline(). Space can be part of the string.
2. Write a method with an input variable (string type). The method should return the number of uppercase letters of the input variable.
3. Get the number of the uppercase letters for each user input string by calling the method
4. Compare the numbers and display the maximum, minimum numbers and the strings
You must use below input example (copy and paste) to test your program
Please input a string: y8aM91cA B
ABC123 X
YUM49 YZ
and output should be like:
YUM49 YZ has the maximum number of uppercase: 5
y8aM91cA B has the minimum number of uppercase: 3