Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

((String + Loop + method) Write a Java program to meet the following requirements: 1. Prompt the user to enter three strings by using nextline().

((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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

5. Our efficiency focus eliminates free time for fresh thinking.

Answered: 1 week ago