Question: Write a Java program StringApplication which creates a Scanner object then does the following: 1. Ask the user to enter a book title using prompt

Write a Java program StringApplication which creates a Scanner object then does the following: 1. Ask the user to enter a book title using prompt "Enter a book title: " 2. Read in the book title 3. Print the first character of the book title within single quotes. 4. Print the first word of the book title within double quotes. 5. Print the rest of the book title without the space after the first word within double quotes 6. Ask the user to enter the starting position for a substring 7. Read in the starting position and store it in an integer variable 8. Ask the user to enter the length for the substring 9. Read in the length and store it in an integer variable 10. Print the substring of the book title specified by the starting position and the length within double quotes There is no starter code. You can have local variables as needed but should create just one Scanner object. You can assume that the book title has multiple words separated by single spaces, but no spaces at either end of the book title. Sample output Enter a book title: Big Java Early Objects The first character is 'B'. The first word is "Big". The rest of title is "Java Early Objects". Enter the starting position for a substring: 0 Enter the length for the substring: 5 The 5-char substring starting at index 0 is "Big J
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
