subject

Write a method called findnames that meets the following specs: it takes two arguments: a list of strings, allnames, and a string, wanted creates and returns a new list containing only the strings from, allnames, that contain the name stored in wanted as a substring. list allnames should remain unmodified: do not delete, or modify the names in it. this should work in a case insensitive manner, but the names in your result list should be exactly as they are in a (i. e. not converted to lower case). we referred to allames and what the method retums as 'lists', but you are free to represent cach one of them however you want: array or arraylist. no error checking needed. example behavior: if allnames is: ["bob smith", "elroy jetson", "christina johnson", "rachael baker", "chris conly"] and wanted is "chris" the resulting list, should be: ["christina johnson", "chris conly"] because only those two strings contain "chris"

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:10, reycaden
David is in week 3 of his current ashford course and has a paper due by monday night at midnight. he has finished everything but the concluding paragraph. as he boots up his computer to work on it, he sees a flash across the screen and then the screen goes black. he begins to panic as he tries desperately to turn the laptop back on. david should have saved his work on what kind of portable device?
Answers: 2
image
Computers and Technology, 23.06.2019 12:00, anamatiascamaja
If you embed a word table into powerpoint, what happens when you make edits to the embedded data? a. edits made to embedded data change the data in the source file; however, edits made to the source file will not be reflected in the embedded data. b. edits made to embedded data will change the data in the source file, and edits made to the source file will be reflected in the embedded data. c. edits made to embedded data don't change the data in the source file, nor will edits made to the source file be reflected in the embedded data. d. edits made to embedded data don't change the data in the source file; however, edits made to the source file will be reflected in the embedded data.
Answers: 1
image
Computers and Technology, 24.06.2019 10:00, shrafe
Which two technologies support the building of single-page applications?
Answers: 2
image
Computers and Technology, 24.06.2019 18:30, millie54
How does the use of e-mail benefit business communications? it can be sent at any time. it is faster than regular mail. it improves writing skills. it is less expensive than using a courier. it reduces the need for proofreading.
Answers: 1
You know the right answer?
Write a method called findnames that meets the following specs: it takes two arguments: a list of...

Questions in other subjects:

Konu
Mathematics, 13.10.2020 14:01
Konu
Mathematics, 13.10.2020 14:01