Question: Write a Java program that will 1. Ask the user to type in a sentence, using a JOptionPane.showinputDialog(). 2. The program will examine each letter

Write a Java program that will 1. Ask the user to type in a sentence, using a JOptionPane.showinputDialog(). 2. The program will examine each letter in the string and count how many time the upper-case letter 'E' appears, and how many times the lower-case letter 'e' appears. The key here is to use the chart method in class String. 3. Using a JOptionPane.showMessageDialog(), tell the user how many upper and lower case e's were in the string. 4. Repeat this process until the user types the word "Stop". (Check out the method equalsignore Case in class String to cover all upper/lower case possibilities of the word "STOP"). Input ? Please enter a sentence. Every tree is not an Elm, Emilie. Message Number of lower case e's: 4 Number of upper case e's: 3 OK Cancel OK
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
