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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:00
Respond to the following in three to five sentences. select the workplace skill, habit, or attitude described in this chapter that you believe is most important for being a successful employee.
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
In three to five sentences, describe how you can organize written information logically and sequentially
Answers: 1
question
Computers and Technology, 24.06.2019 17:30
Which computer network component connects two different networks together and allows them to communicate? a is a node (or a device) that connects two different networks together and allows them to communicate.
Answers: 2
question
Computers and Technology, 24.06.2019 21:00
When replacing a thermostat or water pump, coolant drained from the cooling system should be
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
question
History, 20.08.2019 08:10
question
Mathematics, 20.08.2019 08:10
question
Mathematics, 20.08.2019 08:10
question
Mathematics, 20.08.2019 08:10
Questions on the website: 13722363