subject

Write a program in which will use some of the built-in METHODS as it relates to the use of Strings. 1) The program will ask the user the following prompts: Please enter your first name and their last name, separated by a space. This program will then read-in the user's response using Scanner. You must separate the string input entered by the user into two strings via substrings. Substring one will store the first name and Substring two will store the last name respectively. ***hint this can be accomplish using the indexOf() to find the position of the space. Your program must display/output the number of characters in each name, as well as the user's initials that was entered. You must check and trim all extra white spaces before and after the string entered by the user. Incorporate and loop to have this program ask this user if they would like to execute the program again by prompting and requesting a Y for Yes and a N for No. This prompt should ignore upper or lower case entries. The initials are the first letter of the first name together with the first letter of the last name. Hello their Louis I have your first name as Louis, which has 5 characters Hello again Louis I have your last name as Henry, which has 5 characters Did you know that your initials are LH Do you wish to continue (Y)Yes or (N)No

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 17:40
Anewly established internet company with 40 employees needs your advice. they are looking for a collaboration tool and have narrowed their choices to gotomeeting, webex, and my web conferences. after reading the information presented in this chapter and other sources, prepare a two- page document ( double spaced) that includes two advantages and two disadvantages of each tool. which one is your final recommendation? why did you choose that tool over the other two?
Answers: 3
question
Computers and Technology, 25.06.2019 08:30
While using pert (program evaluation review technique) and cpm (critical path method) techniques, activities that are not on the critical path are more inflexible than those activities on the critical path. select one: true false
Answers: 1
question
Computers and Technology, 25.06.2019 17:50
Does anybody have the answers for game design i a unit 6: game design i a final exam i really need i am so flustered right now and i know that this is a lot to ask but i really need .
Answers: 3
question
Computers and Technology, 26.06.2019 06:30
What important technology has done the most to allow small businesses a change to compete with larger international companies?
Answers: 2
You know the right answer?
Write a program in which will use some of the built-in METHODS as it relates to the use of Strings....
Questions
question
Mathematics, 16.12.2020 18:50
question
History, 16.12.2020 18:50
question
Mathematics, 16.12.2020 18:50
Questions on the website: 13722367