Question: a. Create a program that contains a String that holds your favorite inspirational quote and display the total number of spaces contained in the String.
a. Create a program that contains a String that holds your favorite inspirational quote and display the total number of spaces contained in the String. Save the file as CountSpaces.java.
b. Write an application that counts the total number of spaces contained in a quote entered by the user. Save the file as CountSpaces2.java.
Step by Step Solution
3.47 Rating (160 Votes )
There are 3 Steps involved in it
a public class CountSpaces public static void mainString args String aString The b... View full answer
Get step-by-step solutions from verified subject matter experts
