Question: On Jgraps using Java, can you use a simple method using string input and char 2. Instructions: User to enter a phrase of at least
2. Instructions: User to enter a phrase of at least 25 characters. Use Do-while loop to validate the length of the phrase and if too short, have the user try again (remember the String method length from Chapter 2.9-3rd week). Then using a for loop to count the number of times the 3rd character (hint: The Character At method from Chapter 2.9-3rd week) in their phase appears. The class to communicate with the user (Scanner vs. JOptionPane) is your choice, but be consistent. Meaning, use the same class for both input and output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
